summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-07-27 18:46:29 +0300
committerandreykproductengine <akleshchev@productengine.com>2015-07-27 18:46:29 +0300
commit33dfd860ecd29790b4c43c28f52b185c98ad791d (patch)
treeaac8daf636afe7f1130deb3811484ace4f748b47 /indra/newview
parent1d3c59f29c2845ae326830b75f5da5e96ca46139 (diff)
MAINT-5439 FIXED Gesture will not deactivate by using the deactivate button in inventory drop down menu
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llappearancemgr.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 142a3250c8..a0c3868dc6 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -3821,9 +3821,17 @@ void LLAppearanceMgr::removeItemsFromAvatar(const uuid_vec_t& ids_to_remove)
const LLUUID& id_to_remove = *it;
const LLUUID& linked_item_id = gInventory.getLinkedItemID(id_to_remove);
LLViewerInventoryItem *item = gInventory.getItem(linked_item_id);
- if (item && item->getType() == LLAssetType::AT_OBJECT)
+ if (item)
{
- LL_DEBUGS("Avatar") << "ATT removing attachment " << item->getName() << " id " << item->getUUID() << LL_ENDL;
+ if (item->getType() == LLAssetType::AT_OBJECT)
+ {
+ LL_DEBUGS("Avatar") << "ATT removing attachment " << item->getName() << " id " << item->getUUID() << LL_ENDL;
+ }
+ if (item->getType() == LLAssetType::AT_GESTURE && LLGestureMgr::instance().isGestureActive(item->getLinkedUUID()))
+ {
+ // deactivate gesture before removing link
+ LLGestureMgr::instance().deactivateGesture(item->getLinkedUUID());
+ }
}
removeCOFItemLinks(linked_item_id, cb);
addDoomedTempAttachment(linked_item_id);