避免临时编辑器错误的提前销毁对象

pull/436/MERGE
ChenX 5 years ago
parent f99dccd8b0
commit d6658e7978

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

Loading…
Cancel
Save