From 0aae08eb5ecf2a32541eb081fae52d367c084f2a Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Sun, 19 Aug 2018 13:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6updateScenePanel=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/event/EventList.js | 1 - ShadowEditor.Web/src/event/sideBar/ScenePanelEvent.js | 1 - ShadowEditor.Web/src/serialization/Converter.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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;