瀏覽代碼

GLTFExporter: Fix GLB options on the editor

Fernando Serrano 7 年之前
父節點
當前提交
8c413535ef
共有 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 );