Prevent needless XML parsing of tools floater

Ansariel 2018-01-22 15:52:06 +01:00
parent bce6f3f0a2
commit 2652e18b85
1 changed files with 8 additions and 3 deletions

View File

@ -2446,9 +2446,14 @@ void LLPanelObject::refresh()
F32 max_scale = get_default_max_prim_scale(LLPickInfo::isFlora(mObject));
getChild<LLSpinCtrl>("Scale X")->setMaxValue(max_scale);
getChild<LLSpinCtrl>("Scale Y")->setMaxValue(max_scale);
getChild<LLSpinCtrl>("Scale Z")->setMaxValue(max_scale);
// <FS:Ansariel> Performance improvement
//getChild<LLSpinCtrl>("Scale X")->setMaxValue(max_scale);
//getChild<LLSpinCtrl>("Scale Y")->setMaxValue(max_scale);
//getChild<LLSpinCtrl>("Scale Z")->setMaxValue(max_scale);
mCtrlScaleX->setMaxValue(max_scale);
mCtrlScaleY->setMaxValue(max_scale);
mCtrlScaleZ->setMaxValue(max_scale);
// </FS:Ansariel>
}