viewer#1529 Mesh Uploader should permit lowering material count
parent
e8de17d6a6
commit
741b79d63b
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue