Explorar el Código

GLTFLoader: Continue loading even if textures are missing.

Mr.doob hace 8 años
padre
commit
67b4a111bc
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      examples/js/loaders/GLTFLoader.js

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

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