SH-2309 FIXED 'Triangles limit' combo value updating problem.

Fixed updating 'Error threshold' spinner control visibility.
meow-7.2.2
Seth ProductEngine 2011-09-08 18:47:37 +03:00
parent 955bcbb951
commit f44b44400b
1 changed files with 4 additions and 3 deletions

View File

@ -3806,7 +3806,7 @@ void LLModelPreview::genLODs(S32 which_lod, U32 decimation, bool enforce_tri_lim
{
lod_mode = iface->getFirstSelectedIndex();
}
mRequestedLoDMode[mPreviewLOD] = lod_mode;
mRequestedLoDMode[which_lod] = lod_mode;
F32 lod_error_threshold = mFMP->childGetValue("lod_error_threshold_" + lod_name[which_lod]).asReal();
@ -4247,6 +4247,8 @@ void LLModelPreview::updateStatusMessages()
icon = mFMP->getChild<LLIconCtrl>("lod_status_message_icon");
icon->setImage(img);
}
updateLodControls(lod);
}
@ -4448,6 +4450,7 @@ void LLModelPreview::updateLodControls(S32 lod)
{
"lod_mode_",
"lod_triangle_limit_",
"lod_error_threshold_"
};
const U32 num_lod_controls = sizeof(lod_controls)/sizeof(char*);
@ -5539,8 +5542,6 @@ void LLModelPreview::onLODParamCommit(S32 lod, bool enforce_tri_limit)
if (!mLODFrozen)
{
genLODs(lod, 3, enforce_tri_limit);
updateLodControls(lod);
updateStatusMessages();
refresh();
}
}