parent
7e6578dc0f
commit
67ee70a6ab
|
|
@ -4308,9 +4308,12 @@ BOOL LLSelectMgr::selectGetAggregateTexturePermissions(LLAggregatePermissions& r
|
|||
|
||||
BOOL LLSelectMgr::isMovableAvatarSelected()
|
||||
{
|
||||
if (mAllowSelectAvatar)
|
||||
if (mAllowSelectAvatar && getSelection()->getObjectCount() == 1)
|
||||
{
|
||||
return (getSelection()->getObjectCount() == 1) && (getSelection()->getFirstRootObject()->isAvatar()) && getSelection()->getFirstMoveableNode(TRUE);
|
||||
// nothing but avatar should be selected, so check that
|
||||
// there is only one selected object and it is a root
|
||||
LLViewerObject* obj = getSelection()->getFirstRootObject();
|
||||
return obj && obj->isAvatar() && getSelection()->getFirstMoveableNode(TRUE);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue