diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-11-06 11:48:35 +0100 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-11-06 12:01:37 +0100 |
commit | 15d4bb6353070ecaf3102363ba83b40c015dd9be (patch) | |
tree | 3e34aa05fd3baeae16e96adf805886eb1a274b76 | |
parent | a1233239f8742fbe8e6e07a65d5fea0ea2f16001 (diff) |
#2997 The 'Reset Skeleton' option is missing in the right-click menu
-rw-r--r-- | indra/newview/llviewermenu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 68c38c3692..0b7d1a7e35 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -6722,11 +6722,8 @@ class LLAvatarEnableResetSkeleton : public view_listener_t { bool handleEvent(const LLSD& userdata) { - if (LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject())) - { - return true; - } - return false; + LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); + return obj && obj->getAvatar(); } }; |