Jelajahi Sumber

Revert the change of GLTFLoader

Takahiro 8 tahun lalu
induk
melakukan
3faad2bfab
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      examples/js/loaders/GLTFLoader.js

+ 2 - 2
examples/js/loaders/GLTFLoader.js

@@ -1644,7 +1644,7 @@ THREE.GLTFLoader = ( function () {
 
 						}
 
-						if ( primitive.indices !== undefined ) {
+						if ( primitive.indices ) {
 
 							geometry.setIndex( dependencies.accessors[ primitive.indices ] );
 
@@ -1694,7 +1694,7 @@ THREE.GLTFLoader = ( function () {
 
 						var meshNode;
 
-						if ( primitive.indices !== undefined ) {
+						if ( primitive.indices ) {
 
 							geometry.setIndex( dependencies.accessors[ primitive.indices ] );