summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-11-06 11:48:35 +0100
committerGuru <alexandrgproductengine@lindenlab.com>2024-11-06 12:01:37 +0100
commit15d4bb6353070ecaf3102363ba83b40c015dd9be (patch)
tree3e34aa05fd3baeae16e96adf805886eb1a274b76
parenta1233239f8742fbe8e6e07a65d5fea0ea2f16001 (diff)
#2997 The 'Reset Skeleton' option is missing in the right-click menu
-rw-r--r--indra/newview/llviewermenu.cpp7
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();
}
};