Selaa lähdekoodia

ImageUtils: Passing texture in the loadTexture onLoad callback. Fixes #2032.

Mr.doob 13 vuotta sitten
vanhempi
commit
346bac61ac
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/extras/ImageUtils.js

+ 1 - 1
src/extras/ImageUtils.js

@@ -18,7 +18,7 @@ THREE.ImageUtils = {
 			texture.image = event.content;
 			texture.needsUpdate = true;
 			
-			if ( onLoad ) onLoad();
+			if ( onLoad ) onLoad( texture );
 
 		} );