瀏覽代碼

Editor: Add scene children instead of scene.

Mr.doob 12 年之前
父節點
當前提交
918c355cab
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      editor/index.html

+ 5 - 2
editor/index.html

@@ -299,8 +299,11 @@
 
 									var scene = loader.parse( data );
 
-									signals.objectAdded.dispatch( scene );
-									signals.objectSelected.dispatch( scene );
+									while ( scene.children.length > 0 ) {
+
+										signals.objectAdded.dispatch( scene.children[ 0 ] );
+
+									}
 
 								}