Browse Source

Editor: Disabled Export Scene.

Mr.doob 12 years ago
parent
commit
f2f9e2ef22
2 changed files with 10 additions and 3 deletions
  1. 6 3
      editor/index.html
  2. 4 0
      editor/js/ui/Menubar.File.js

+ 6 - 3
editor/index.html

@@ -287,10 +287,13 @@
 									loader = new THREE.SceneLoader();
 									loader = new THREE.SceneLoader();
 									loader.parse( data, function ( result ) {
 									loader.parse( data, function ( result ) {
 
 
-										result.scene.name = filename;
+										var scene = result.scene;
 
 
-										signals.objectAdded.dispatch( result.scene );
-										signals.objectSelected.dispatch( result.scene );
+										while ( scene.children.length > 0 ) {
+
+											signals.objectAdded.dispatch( scene.children[ 0 ] );
+
+										}
 
 
 									}, '' );
 									}, '' );
 
 

+ 4 - 0
editor/js/ui/Menubar.File.js

@@ -55,6 +55,8 @@ Menubar.File = function ( signals ) {
 	option.onClick( function () { signals.exportGeometry.dispatch( { exporter: THREE.GeometryExporter } ); } );
 	option.onClick( function () { signals.exportGeometry.dispatch( { exporter: THREE.GeometryExporter } ); } );
 	options.add( option );
 	options.add( option );
 
 
+	/*
+
 	// export scene
 	// export scene
 
 
 	var option = new UI.Panel();
 	var option = new UI.Panel();
@@ -63,6 +65,8 @@ Menubar.File = function ( signals ) {
 	option.onClick( function () { signals.exportScene.dispatch( { exporter: THREE.SceneExporter } ); } );
 	option.onClick( function () { signals.exportScene.dispatch( { exporter: THREE.SceneExporter } ); } );
 	options.add( option );
 	options.add( option );
 
 
+	*/
+
 	// export scene 2
 	// export scene 2
 
 
 	var option = new UI.Panel();
 	var option = new UI.Panel();