浏览代码

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

Mr.doob 13 年之前
父节点
当前提交
346bac61ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );
 
 		} );