summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-14 21:10:30 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-15 11:21:54 +0300
commit851a5039301b977592b21fe2055da77f8e59800b (patch)
treeaefa019c5bd9c85a6124befe8062d513541e7bff
parent167b7bae6294045ee873bb23c67ceadc38ba1184 (diff)
#3971 Fix wrong material type when 'editing linked'
-rw-r--r--indra/newview/llpanelvolume.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpanelvolume.cpp b/indra/newview/llpanelvolume.cpp
index 2fbdbeaf59..5916163f60 100644
--- a/indra/newview/llpanelvolume.cpp
+++ b/indra/newview/llpanelvolume.cpp
@@ -582,7 +582,7 @@ void LLPanelVolume::getState( )
bool enable_material = editable && single_volume && material_same;
LLCachedControl<bool> edit_linked(gSavedSettings, "EditLinkedParts", false);
- if (!enable_material && !edit_linked())
+ if (!enable_material)
{
LLViewerObject* root = selection->getPrimaryObject();
while (root && !root->isAvatar() && root->getParent())
@@ -592,6 +592,10 @@ void LLPanelVolume::getState( )
{
break;
}
+ if (!parent->isSelected())
+ {
+ break;
+ }
root = parent;
}
if (root)