We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d4d5e3 + 633bd2f commit 3908b33Copy full SHA for 3908b33
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