소스 검색

Cannot use bind with optional arguments (#1188)

Rudy Ges 1 년 전
부모
커밋
eb3f9a69f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h3d/prim/ModelCache.hx

+ 1 - 1
h3d/prim/ModelCache.hx

@@ -50,7 +50,7 @@ class ModelCache {
 
 	public function loadModel( res : hxd.res.Model ) : h3d.scene.Object {
 		var m = loadLibraryData(res);
-		return m.lib.makeObject(loadTexture.bind(res));
+		return m.lib.makeObject(texturePath -> loadTexture(res, texturePath));
 	}
 
 	public function loadCollider( res : hxd.res.Model ) {