diff options
Diffstat (limited to 'indra/newview/llgltfmateriallist.cpp')
-rw-r--r-- | indra/newview/llgltfmateriallist.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp index ab7a6495c4..80f198fc6c 100644 --- a/indra/newview/llgltfmateriallist.cpp +++ b/indra/newview/llgltfmateriallist.cpp @@ -31,6 +31,7 @@ #include "lldispatcher.h" #include "llfetchedgltfmaterial.h" #include "llfilesystem.h" +#include "llmaterialeditor.h" #include "llsdserialize.h" #include "lltinygltfhelper.h" #include "llviewercontrol.h" @@ -128,6 +129,12 @@ namespace // object not ready to receive override data, queue for later gGLTFMaterialList.queueOverrideUpdate(object_id, side, override_data); } + else if (obj && obj->isAnySelected()) + { + // Might want to cause a full selection + // update here instead of just an editor + LLMaterialEditor::updateLive(); + } } } @@ -140,6 +147,12 @@ namespace obj->setTEGLTFMaterialOverride(i, nullptr); } } + if (obj->isAnySelected()) + { + // Might want to cause a full selection + // update here instead of just an editor + LLMaterialEditor::updateLive(); + } } } else @@ -154,6 +167,12 @@ namespace { obj->setTEGLTFMaterialOverride(i, nullptr); } + if (obj->isAnySelected()) + { + // Might want to cause a full selection + // update here instead of just an editor + LLMaterialEditor::updateLive(); + } } return true; } @@ -190,6 +209,12 @@ void LLGLTFMaterialList::applyQueuedOverrides(LLViewerObject* obj) return; } obj->setTEGLTFMaterialOverride(i, overrides[i]); + if (obj->isAnySelected()) + { + // Might want to cause a full selection + // update here instead of just an editor + LLMaterialEditor::updateLive(); + } } } |