소스 검색

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 );
 
 		} );