We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d4d5e3 commit 633bd2fCopy full SHA for 633bd2f
1 file changed
scripts/skinning/SkinManager.cs
@@ -222,7 +222,7 @@ private static ArrayMesh loadMesh(string path)
222
{
223
bool exists = ResourceLoader.Exists(path) || Godot.FileAccess.FileExists(path);
224
225
- return exists ? (ArrayMesh)Util.Misc.OBJParser.Call("load_obj", path) : GD.Load<ArrayMesh>($"res://user/meshes/squircle.obj");
+ return Util.Misc.OBJParser.Call("load_obj", exists ? path : "res://user/meshes/squircle.obj").As<ArrayMesh>();
226
}
227
228
private static BaseSpace loadSpace(string path)
0 commit comments