修复:因为模块数据缓存导致的替换模块错误

pull/1500/head
ChenX 3 years ago
parent 2886ce904b
commit c07deea199

@ -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)

Loading…
Cancel
Save