diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-07-03 10:31:01 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-07-03 10:31:01 +0800 |
commit | 40de4208328bcac51782302e7028ec2dd057224e (patch) | |
tree | 4525dba29f0f62bdc400341c70bdecfd9123fb2c /indra/newview/llviewermenu.cpp | |
parent | a89991feac78b87d784dde742a17e67772856d18 (diff) |
Partial @detach=<y/n> command implementation
Only greying out the detach option on the contextual menu popped up by
right clicking the attachment in the 3D view/world, and not yet
preventing detachment from the inventory/wearing panels.
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index cb2a8a54b7..c3bb8ef4c4 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -7700,6 +7700,7 @@ bool enable_detach(const LLSD&) // Only enable detach if all faces of object are selected if (!object || !object->isAttachment() || + object->isLocked() || !LLSelectMgr::getInstance()->getSelection()->contains(object,SELECT_ALL_TES )) { return false; |