From d6658e79787e004c7f7cb243cebb88630d4d9ab9 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 30 Jul 2019 17:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=B4=E6=97=B6=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E9=94=99=E8=AF=AF=E7=9A=84=E6=8F=90=E5=89=8D?= =?UTF-8?q?=E9=94=80=E6=AF=81=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/TempEditor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Editor/TempEditor.ts b/src/Editor/TempEditor.ts index afb9033c7..451bbef2b 100644 --- a/src/Editor/TempEditor.ts +++ b/src/Editor/TempEditor.ts @@ -50,7 +50,6 @@ export class TempEditor app.Viewer.Scene.add(app.Viewer.GripScene); app.Viewer.OutlinePass.selectedObjects.length = 0; app.Viewer.OutlinePass.renderObjects.length = 0; - DisposeThreeObj(this.editorScene); let showLog = HostApplicationServices.ShowHistoryLog; HostApplicationServices.ShowHistoryLog = false; @@ -58,6 +57,8 @@ export class TempEditor while (app.Database.hm.curIndex !== this.hmIndex) app.Database.hm.Undo(); + DisposeThreeObj(this.editorScene); + app.Database.hm.StartCmd(""); app.Database.hm.EndCmd(); HostApplicationServices.ShowHistoryLog = showLog;