mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
删除多余事件updateScenePanel。
This commit is contained in:
parent
a55bd7b257
commit
0aae08eb5e
@ -175,7 +175,6 @@ var EventList = [
|
||||
'selectTab', // 点击选择侧边栏选项卡
|
||||
'selectPropertyTab', // 点击选择属性选项卡
|
||||
|
||||
'updateScenePanel', // 刷新场景面板
|
||||
'updateScenePanelFog', // 刷新场景面板雾效设置
|
||||
'outlinerChange', // 场景大纲发生改变
|
||||
|
||||
|
||||
@ -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();
|
||||
};
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user