Allow more than 1 skinned mesh imported LOD

This commit is contained in:
2026-07-30 22:31:28 -05:00
parent 4d589314c8
commit 8eb571ad51
+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: