浏览代码

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 ) {