优化临时编辑器,在开始和结束时清理选择集

pull/450/MERGE
ChenX 5 years ago
parent 8217fa2702
commit 59c7c1def2

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

Loading…
Cancel
Save