SL-20701 FIXED Build tool texture tab shows incorrect material parameters in some cases
parent
5e8b0fb646
commit
7398efb1f4
|
|
@ -1094,7 +1094,21 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
|
|||
prev_obj_id = objectp->getID();
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (prev_obj_id != objectp->getID())
|
||||
{
|
||||
if (has_pbr_material && (mComboMatMedia->getCurrentIndex() == MATMEDIA_MATERIAL))
|
||||
{
|
||||
mComboMatMedia->selectNthItem(MATMEDIA_PBR);
|
||||
}
|
||||
else if (!has_pbr_material && (mComboMatMedia->getCurrentIndex() == MATMEDIA_PBR))
|
||||
{
|
||||
mComboMatMedia->selectNthItem(MATMEDIA_MATERIAL);
|
||||
}
|
||||
prev_obj_id = objectp->getID();
|
||||
}
|
||||
}
|
||||
mComboMatMedia->setEnabled(editable);
|
||||
|
||||
LLRadioGroup* radio_mat_type = getChild<LLRadioGroup>("radio_material_type");
|
||||
|
|
|
|||
Loading…
Reference in New Issue