瀏覽代碼

GLTFExporter: Rename foceIndex with didForceIndices.

Takahiro 7 年之前
父節點
當前提交
b35b2d435b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/exporters/GLTFExporter.js

+ 3 - 3
examples/js/exporters/GLTFExporter.js

@@ -1015,7 +1015,7 @@ THREE.GLTFExporter.prototype = {
 
 			}
 
-			var forcedIndex = false;
+			var didForceIndices = false;
 
 			if ( geometry.index === null && forceIndices ) {
 
@@ -1029,7 +1029,7 @@ THREE.GLTFExporter.prototype = {
 
 				geometry.index = new THREE.Uint32BufferAttribute( indices, 1 );
 
-				forcedIndex = true;
+				didForceIndices = true;
 
 			}
 
@@ -1063,7 +1063,7 @@ THREE.GLTFExporter.prototype = {
 
 			}
 
-			if ( forcedIndex ) {
+			if ( didForceIndices ) {
 
 				geometry.index = null;