Skip to content

Commit

Permalink
Cannot use bind with optional arguments (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz authored Feb 2, 2024
1 parent c10c049 commit eb3f9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h3d/prim/ModelCache.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit eb3f9a6

Please sign in to comment.