删除多余事件updateScenePanel。

This commit is contained in:
liteng 2018-08-19 13:45:43 +08:00
parent a55bd7b257
commit 0aae08eb5e
3 changed files with 1 additions and 3 deletions

View File

@ -175,7 +175,6 @@ var EventList = [
'selectTab', // 点击选择侧边栏选项卡
'selectPropertyTab', // 点击选择属性选项卡
'updateScenePanel', // 刷新场景面板
'updateScenePanelFog', // 刷新场景面板雾效设置
'outlinerChange', // 场景大纲发生改变

View File

@ -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();
};

View File

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