Fixed crash when deserializing a skinned mesh if no mesh is set

This commit is contained in:
antopilo
2024-11-24 00:03:13 -05:00
parent 32273eece9
commit 6744a58043

View File

@@ -119,6 +119,11 @@ namespace Nuake
}
else
{
if (!j.contains("Meshes"))
{
return true;
}
for (auto& m : j["Meshes"])
{
auto mesh = CreateRef<SkinnedMesh>();