فهرست منبع

Revert the change of GLTFLoader

Takahiro 8 سال پیش
والد
کامیت
3faad2bfab
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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 ] );