summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-07-08 15:21:43 +0800
committerErik Kundiman <erik@megapahit.org>2025-07-08 15:25:14 +0800
commitbd6c39192b0f29be1fbbbbbc257cd0351e505afb (patch)
treef697ba8d243e23b6ceeeab6d92d3a37d9be35953
parente5a7ba4f8f807626e9602d7b231893e2d1ab92d7 (diff)
Preventing detachment from the inventory panels
Part of the @detach=<y/n> command implementation.
-rw-r--r--indra/newview/llappearancemgr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index e9d455ae53..ee7af8692f 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -4160,6 +4160,7 @@ void LLAppearanceMgr::removeItemsFromAvatar(const uuid_vec_t& ids_to_remove, nul
for (uuid_vec_t::const_iterator it = ids_to_remove.begin(); it != ids_to_remove.end(); ++it)
{
const LLUUID& id_to_remove = *it;
+ if (gAgentAvatarp->getWornAttachment(id_to_remove)->isLocked()) return;
const LLUUID& linked_item_id = gInventory.getLinkedItemID(id_to_remove);
LLViewerInventoryItem *item = gInventory.getItem(linked_item_id);
if (item && item->getType() == LLAssetType::AT_OBJECT)