Skip to content
Snippets Groups Projects
Commit 2d41b4fe authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-6160 Fix for ImporterLegacyMatching crash

parent 35b499a0
No related branches found
No related tags found
No related merge requests found
...@@ -1550,9 +1550,18 @@ void LLModelPreview::rebuildUploadData() ...@@ -1550,9 +1550,18 @@ void LLModelPreview::rebuildUploadData()
} }
instance.mLOD[i] = lod_model; instance.mLOD[i] = lod_model;
} }
else if (importerDebug) else
{ {
LL_INFOS() << "List of models does not include " << instance.mLabel << LL_ENDL; if (i < LLModel::LOD_HIGH && !lodsReady())
{
// assign a placeholder from previous LOD until lod generation is complete.
// Note: we might need to assign it regardless of conditions like named search does, to prevent crashes.
instance.mLOD[i] = instance.mLOD[i + 1];
}
if (importerDebug)
{
LL_INFOS() << "List of models does not include " << instance.mLabel << LL_ENDL;
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment