Преглед изворни кода

GLTFExporter: Fix GLB options on the editor

Fernando Serrano пре 7 година
родитељ
комит
927ab472e1
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      editor/js/Menubar.File.js

+ 4 - 3
editor/js/Menubar.File.js

@@ -197,9 +197,10 @@ Menubar.File = function ( editor ) {
 
 			saveArrayBuffer( result, 'scene.glb' );
 
-		}, { binary: true } );
-
-
+			// forceIndices: true to allow compatibility with facebook
+			// https://github.com/mrdoob/three.js/issues/13397
+		}, { binary: true, forceIndices: true } );
+		
 	} );
 	options.add( option );