Explorar o código

Editor: Add scene children instead of scene.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
918c355cab
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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 ] );
+
+									}
 
 								}