Explorar el Código

Editor: Add scene children instead of scene.

Mr.doob hace 12 años
padre
commit
918c355cab
Se han modificado 1 ficheros con 5 adiciones y 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 ] );
+
+									}
 
 								}