mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
chore: fix not terminating when not being able to load lod
This commit is contained in:
parent
71819e46a4
commit
27d047198f
@ -803,7 +803,10 @@ namespace
|
||||
{
|
||||
auto lodNumber = 0u;
|
||||
for (const auto& jLod : jXModel.lods)
|
||||
LoadLod(jLod, xmodel, lodNumber++);
|
||||
{
|
||||
if (!LoadLod(jLod, xmodel, lodNumber++))
|
||||
return false;
|
||||
}
|
||||
xmodel.numLods = static_cast<uint16_t>(jXModel.lods.size());
|
||||
|
||||
xmodel.numsurfs = static_cast<unsigned char>(m_surfaces.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user