Explorar o código

GLTFExporter: Fix GLB options on the editor

Fernando Serrano %!s(int64=7) %!d(string=hai) anos
pai
achega
927ab472e1
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  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 );