summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2026-04-16 19:38:30 +0300
committerGitHub <noreply@github.com>2026-04-16 19:38:30 +0300
commit8a0ada7c9869aa9a5122e8bafd65deb2ba90c968 (patch)
tree8e943078320bdc4838b7bc150081843bbc635721
parent5a8557ab65b3ba1a9c33d30a45463e111c312fbb (diff)
#5647 fix for texture Mapping fields not being updated when selecting BP face after PBR face
-rw-r--r--indra/newview/llpanelface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 128ba42efd..12e1ebaad6 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1073,6 +1073,9 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
// only turn on auto-adjust button if there is a media renderer and the media is loaded
mBtnAlign->setEnabled(editable);
+ // enable if needed before changing selection
+ mComboMatMedia->setEnabledByValue("Materials", !has_pbr_material);
+
if (mComboMatMedia->getCurrentIndex() < MATMEDIA_MATERIAL)
{
// When selecting an object with a pbr and UI combo is not set,
@@ -1677,7 +1680,6 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
mCheckFullbright->setValue((S32)(fullbright_flag != 0));
mCheckFullbright->setEnabled(editable && !has_pbr_material);
mCheckFullbright->setTentative(!identical_fullbright);
- mComboMatMedia->setEnabledByValue("Materials", !has_pbr_material);
}
// Repeats per meter