修复载入场景时未清空场景bug。

This commit is contained in:
liteng 2018-08-08 22:11:56 +08:00
parent 00030631a5
commit bf9b229359

View File

@ -189,6 +189,7 @@ SceneWindow.prototype.loadScene = function (data) {
UI.get('sceneWindow').hide();
}
editor.clear();
(new Converter()).fromJson(this.app, obj.Data);
editor.sceneID = data.ID;