From eb3f9a69f2af470dbc92f3a09c6b251e6da94102 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Fri, 2 Feb 2024 17:33:38 +0100 Subject: [PATCH] Cannot use bind with optional arguments (#1188) --- h3d/prim/ModelCache.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h3d/prim/ModelCache.hx b/h3d/prim/ModelCache.hx index 0b4e2840f..cf1b24de8 100644 --- a/h3d/prim/ModelCache.hx +++ b/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 ) {