From c07deea199335593fb6a79cf6f1bf59f35ddafe2 Mon Sep 17 00:00:00 2001 From: ChenX Date: Sat, 8 May 2021 11:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E5=9B=A0=E4=B8=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=95=B0=E6=8D=AE=E7=BC=93=E5=AD=98=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E6=9B=BF=E6=8D=A2=E6=A8=A1=E5=9D=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/Template/TemplateRecord.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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)