2
0
Эх сурвалжийг харах

ImageUtils.loadTexture: Enable 'onError' callback

Corey Farwell 11 жил өмнө
parent
commit
e03a93173f

+ 4 - 0
src/extras/ImageUtils.js

@@ -20,6 +20,10 @@ THREE.ImageUtils = {
 
 			if ( onLoad ) onLoad( texture );
 
+		}, undefined, function ( event ) {
+
+			if ( onError ) onError( event );
+
 		} );
 
 		texture.image = image;