Browse Source

Editor: Fixed OBJ and STL exporters.

Mr.doob 11 năm trước cách đây
mục cha
commit
3f145369af
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      editor/js/Menubar.File.js

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

@@ -165,7 +165,7 @@ Menubar.File = function ( editor ) {
 
 
 		}
 		}
 
 
-		var exporter = new OBJExporter();
+		var exporter = new THREE.OBJExporter();
 
 
 		exportString( exporter.parse( geometry ) );
 		exportString( exporter.parse( geometry ) );
 
 
@@ -179,7 +179,7 @@ Menubar.File = function ( editor ) {
 	option.setTextContent( 'Export STL' );
 	option.setTextContent( 'Export STL' );
 	option.onClick( function () {
 	option.onClick( function () {
 
 
-		var exporter = new STLExporter();
+		var exporter = new THREE.STLExporter();
 
 
 		exportString( exporter.parse( editor.scene ) );
 		exportString( exporter.parse( editor.scene ) );