Merge branch 'allow-skinnedmesh-lod' of https://github.com/Tryibion/FlaxEngine into Tryibion-allow-skinnedmesh-lod

This commit is contained in:
2026-08-04 13:19:39 +02:00
+3 -3
View File
@@ -1318,10 +1318,10 @@ bool ModelTool::ImportModel(const String& path, ModelData& data, Options& option
}
break;
case ModelType::SkinnedModel:
if (data.LODs.Count() > 1)
if (data.LODs.IsEmpty() || data.LODs[0].Meshes.IsEmpty())
{
LOG(Warning, "Imported skinned model has more than one LOD. Removing the lower LODs. Only single one is supported.");
data.LODs.Resize(1);
errorMsg = TEXT("Imported skinned model has no valid geometry.");
return true;
}
break;
case ModelType::Animation: