diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-05-28 18:38:01 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-05-28 18:38:01 +0300 |
commit | 353afb48f265822f591eb8d02cacd830e32640bf (patch) | |
tree | f138906189f7f7adefb812137a991366f342b6ce /indra/newview/llcofwearables.cpp | |
parent | 5a44656a2687de2f495708134308228d28a69971 (diff) |
SL-13239 Add 'Touch' to the various attachment context menus
Diffstat (limited to 'indra/newview/llcofwearables.cpp')
-rw-r--r-- | indra/newview/llcofwearables.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llcofwearables.cpp b/indra/newview/llcofwearables.cpp index aede623f58..b31981b235 100644 --- a/indra/newview/llcofwearables.cpp +++ b/indra/newview/llcofwearables.cpp @@ -140,6 +140,7 @@ protected: { LLUICtrl::CommitCallbackRegistry::ScopedRegistrar registrar; + registrar.add("Attachment.Touch", boost::bind(handleMultiple, handle_attachment_touch, mUUIDs)); registrar.add("Attachment.Edit", boost::bind(handleMultiple, handle_item_edit, mUUIDs)); registrar.add("Attachment.Detach", boost::bind(&LLAppearanceMgr::removeItemsFromAvatar, LLAppearanceMgr::getInstance(), mUUIDs)); @@ -153,7 +154,11 @@ protected: { const std::string event_name = userdata.asString(); - if ("edit" == event_name) + if ("touch" == event_name) + { + return (1 == mUUIDs.size()) && (enable_attachment_touch(mUUIDs.front())); + } + else if ("edit" == event_name) { return (1 == mUUIDs.size()) && (get_is_item_editable(mUUIDs.front())); } |