viewer#1529 Mesh Uploader should permit lowering material count

meow-7.2.2
Andrey Kleshchev 2024-05-21 21:12:41 +03:00 committed by Andrey Kleshchev
parent e8de17d6a6
commit 741b79d63b
2 changed files with 8 additions and 2 deletions

View File

@ -1765,9 +1765,15 @@ void LLFloaterModelPreview::onLoDSourceCommit(S32 lod)
if (index == LLModelPreview::MESH_OPTIMIZER_AUTO
|| index == LLModelPreview::MESH_OPTIMIZER_SLOPPY
|| index == LLModelPreview::MESH_OPTIMIZER_PRECISE)
{ //rebuild LoD to update triangle counts
{
// rebuild LoD to update triangle counts
onLODParamCommit(lod, true);
}
if (index == LLModelPreview::USE_LOD_ABOVE)
{
// refresh to pick triangle counts
mModelPreview->mDirty = true;
}
}
void LLFloaterModelPreview::resetDisplayOptions()

View File

@ -2285,7 +2285,7 @@ void LLModelPreview::updateStatusMessages()
if (lod != lod_high)
{
if (total_submeshes[lod] && total_submeshes[lod] != total_submeshes[lod_high])
if (total_submeshes[lod] && total_submeshes[lod] > total_submeshes[lod_high])
{ //number of submeshes is different
message = "mesh_status_submesh_mismatch";
upload_status[lod] = 2;