diff options
author | Nyx Linden <nyx@lindenlab.com> | 2013-04-25 14:10:08 -0400 |
---|---|---|
committer | Nyx Linden <nyx@lindenlab.com> | 2013-04-25 14:10:08 -0400 |
commit | 4df3e38e294e4ba506fdc2a3920361c1f832f9fb (patch) | |
tree | 1eba000c0247cc5bb4a698186e1d645b68317c8d /indra/newview/llgesturemgr.cpp | |
parent | d58b9ee54e84b709e063cdbbc349de25feafa59b (diff) | |
parent | e60cb90b632d175690f48b783ece272deff524cd (diff) |
merge
Diffstat (limited to 'indra/newview/llgesturemgr.cpp')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llgesturemgr.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp index 9aa86297fc..5eaa83d872 100644..100755 --- a/indra/newview/llgesturemgr.cpp +++ b/indra/newview/llgesturemgr.cpp @@ -299,6 +299,12 @@ void LLGestureMgr::activateGestureWithAsset(const LLUUID& item_id, } +void notify_update_label(const LLUUID& base_item_id) +{ + gInventory.addChangedMask(LLInventoryObserver::LABEL, base_item_id); + LLGestureMgr::instance().notifyObservers(); +} + void LLGestureMgr::deactivateGesture(const LLUUID& item_id) { const LLUUID& base_item_id = get_linked_uuid(item_id); @@ -322,7 +328,6 @@ void LLGestureMgr::deactivateGesture(const LLUUID& item_id) } mActive.erase(it); - gInventory.addChangedMask(LLInventoryObserver::LABEL, base_item_id); // Inform the database of this change LLMessageSystem* msg = gMessageSystem; @@ -338,9 +343,11 @@ void LLGestureMgr::deactivateGesture(const LLUUID& item_id) gAgent.sendReliableMessage(); - LLAppearanceMgr::instance().removeCOFItemLinks(base_item_id); + LLPointer<LLInventoryCallback> cb = + new LLBoostFuncInventoryCallback(no_op_inventory_func, + boost::bind(notify_update_label,base_item_id)); - notifyObservers(); + LLAppearanceMgr::instance().removeCOFItemLinks(base_item_id, cb); } |