Explorar el Código

Editor: Fixed Export Scene.

Mr.doob hace 11 años
padre
commit
6bc9f887ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      editor/js/Menubar.File.js

+ 1 - 1
editor/js/Menubar.File.js

@@ -48,7 +48,7 @@ Menubar.File = function ( editor ) {
 
 		var output = exporter.parse( editor.scene );
 
-		if ( exporterClass instanceof THREE.ObjectExporter ) {
+		if ( exporter instanceof THREE.ObjectExporter ) {
 
 			output = JSON.stringify( output, null, '\t' );
 			output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' );