Browse Source

GLTFExporter: Fix GLB options on the editor

Fernando Serrano 7 years ago
parent
commit
8c413535ef
1 changed files with 4 additions and 3 deletions
  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 );