diff --git a/src/Editor/TempEditor.ts b/src/Editor/TempEditor.ts index 451bbef2b..1b3b3e3f9 100644 --- a/src/Editor/TempEditor.ts +++ b/src/Editor/TempEditor.ts @@ -28,6 +28,7 @@ export class TempEditor throw "重复进入临时编辑模式!"; this.EditorIng = true; + app.Editor.SelectCtrl.Cancel(); this.viewerScene = app.Viewer.Scene; app.Viewer.Scene = this.editorScene; this.editorScene.add(app.Viewer.GripScene); @@ -48,8 +49,7 @@ export class TempEditor this.EditorIng = false; app.Viewer.Scene = this.viewerScene; app.Viewer.Scene.add(app.Viewer.GripScene); - app.Viewer.OutlinePass.selectedObjects.length = 0; - app.Viewer.OutlinePass.renderObjects.length = 0; + app.Editor.SelectCtrl.Cancel(); let showLog = HostApplicationServices.ShowHistoryLog; HostApplicationServices.ShowHistoryLog = false;