Browse Source

GLTFLoader: Continue loading even if textures are missing.

Mr.doob 8 years ago
parent
commit
67b4a111bc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      examples/js/loaders/GLTFLoader.js

+ 5 - 1
examples/js/loaders/GLTFLoader.js

@@ -795,7 +795,11 @@ THREE.GLTFLoader = ( function () {
 
 
 						resolve( _texture );
 						resolve( _texture );
 
 
-					}.bind( this ) );
+					}.bind( this ), undefined, function () {
+
+						resolve();
+
+					} );
 
 
 				}.bind( this ) );
 				}.bind( this ) );