summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2023-12-08 10:53:01 -0800
committerBrad Linden <brad@lindenlab.com>2023-12-08 10:53:01 -0800
commit4024a4df3b36b55ce2f05e02218251e15a4a2286 (patch)
tree2d1e4ba20d4e767f6e38fa5b94dc96c031151d75
parent2c2d60bbc36c58314d36770349c2f904c848e582 (diff)
parent7398efb1f4ccf36f9c107e920f38c3096cca2f2f (diff)
Merge remote-tracking branch 'origin/DRTVWR-596' into DRTVWR-601
-rw-r--r--indra/newview/llpanelface.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index ffcc4be290..f0f66831cb 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -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");