Browse Source

GLTFExporter: Rename foceIndex with didForceIndices.

Takahiro 7 years ago
parent
commit
b35b2d435b
1 changed files with 3 additions and 3 deletions
  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 ) {
 			if ( geometry.index === null && forceIndices ) {
 
 
@@ -1029,7 +1029,7 @@ THREE.GLTFExporter.prototype = {
 
 
 				geometry.index = new THREE.Uint32BufferAttribute( indices, 1 );
 				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;
 				geometry.index = null;