Explorar o código

Change saveString() to saveArrayBuffer()

Change saveString() to saveArrayBuffer() for STL binary exporter.
Hassadee Pimsuwan %!s(int64=6) %!d(string=hai) anos
pai
achega
cecacf0a9e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/Menubar.File.js

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

@@ -288,7 +288,7 @@ Menubar.File = function ( editor ) {
 
 		var exporter = new THREE.STLExporter();
 
-		saveString( exporter.parse( editor.scene, { binary: true } ), 'model-binary.stl' );
+		saveArrayBuffer( exporter.parse( editor.scene, { binary: true } ), 'model-binary.stl' );
 
 	} );
 	options.add( option );