diff --git a/ShadowEditor.Web/src/event/EventList.js b/ShadowEditor.Web/src/event/EventList.js index 05175dc8..f239b86c 100644 --- a/ShadowEditor.Web/src/event/EventList.js +++ b/ShadowEditor.Web/src/event/EventList.js @@ -175,7 +175,6 @@ var EventList = [ 'selectTab', // 点击选择侧边栏选项卡 'selectPropertyTab', // 点击选择属性选项卡 - 'updateScenePanel', // 刷新场景面板 'updateScenePanelFog', // 刷新场景面板雾效设置 'outlinerChange', // 场景大纲发生改变 diff --git a/ShadowEditor.Web/src/event/sideBar/ScenePanelEvent.js b/ShadowEditor.Web/src/event/sideBar/ScenePanelEvent.js index 61bc6c05..c3d66399 100644 --- a/ShadowEditor.Web/src/event/sideBar/ScenePanelEvent.js +++ b/ShadowEditor.Web/src/event/sideBar/ScenePanelEvent.js @@ -21,7 +21,6 @@ ScenePanelEvent.prototype.start = function () { this.app.on(`objectChanged.${this.id}`, this.onObjectChanged.bind(this)); this.app.on(`objectSelected.${this.id}`, this.onObjectSelected.bind(this)); this.app.on(`outlinerChange.${this.id}`, this.onOutlinerChange.bind(this)); - this.app.on(`updateScenePanel.${this.id}`, this.refreshUI.bind(this)); this.refreshUI(); }; diff --git a/ShadowEditor.Web/src/serialization/Converter.js b/ShadowEditor.Web/src/serialization/Converter.js index 9552fb53..6d149911 100644 --- a/ShadowEditor.Web/src/serialization/Converter.js +++ b/ShadowEditor.Web/src/serialization/Converter.js @@ -168,7 +168,7 @@ Converter.prototype.fromJson = function (json) { promise.then(obj => { if (obj) { this.app.editor.scene.add(obj); - this.app.call('updateScenePanel', this); + this.app.call('sceneGraphChanged', this); } }); return;