Explorar el Código

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

Mr.doob hace 13 años
padre
commit
346bac61ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 );
 
 		} );