Skip to content

Commit 15d4bb6

Browse files
committed
#2997 The 'Reset Skeleton' option is missing in the right-click menu
1 parent a123323 commit 15d4bb6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

indra/newview/llviewermenu.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6722,11 +6722,8 @@ class LLAvatarEnableResetSkeleton : public view_listener_t
67226722
{
67236723
bool handleEvent(const LLSD& userdata)
67246724
{
6725-
if (LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()))
6726-
{
6727-
return true;
6728-
}
6729-
return false;
6725+
LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject();
6726+
return obj && obj->getAvatar();
67306727
}
67316728
};
67326729

0 commit comments

Comments
 (0)