瀏覽代碼

Editor: Fixed Export Scene.

Mr.doob 11 年之前
父節點
當前提交
6bc9f887ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  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' );