diff --git a/src/DatabaseServices/Template/TemplateRecord.ts b/src/DatabaseServices/Template/TemplateRecord.ts index e9015a21c..be2ea6c24 100644 --- a/src/DatabaseServices/Template/TemplateRecord.ts +++ b/src/DatabaseServices/Template/TemplateRecord.ts @@ -784,6 +784,13 @@ export class TemplateRecord extends SymbolTableRecord if (this._Version > 1) this.SplitType = file.Read() ?? this.SplitType; + + //清空缓存,因为我们回滚了模块(BUG:修改参数->撤销->替换模块(此时读取了缓存的数据) + this._CacheParamVars = undefined; + this._CacheSpaceCS = undefined; + this._CacheSpaceSize = undefined; + this._CatchRootParam = undefined; + this._NodeDepthCache = undefined; } //对象将自身数据写入到文件. WriteFile(file: CADFiler)