diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llselectmgr.cpp | 11 | ||||
| -rw-r--r-- | indra/newview/llvovolume.cpp | 6 | 
2 files changed, 13 insertions, 4 deletions
| diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 983a7ca1ae..4a12d03f74 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -46,6 +46,7 @@  #include "llundo.h"  #include "lluuid.h"  #include "llvolume.h" +#include "llcontrolavatar.h"  #include "message.h"  #include "object_flags.h"  #include "llquaternion.h" @@ -6660,7 +6661,15 @@ void LLSelectMgr::updateSelectionCenter()  		}  		else  		{ -			mPauseRequest = NULL; +            LLVOVolume *volp = dynamic_cast<LLVOVolume*>(object); +            if (volp && volp->isAnimatedObject() && volp->getControlAvatar()) +            { +                mPauseRequest = volp->getControlAvatar()->requestPause(); +            } +            else +            { +                mPauseRequest = NULL; +            }  		}  		if (mSelectedObjects->mSelectType != SELECT_TYPE_HUD && isAgentAvatarValid()) diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 4065f9fc37..d661837ddd 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4269,9 +4269,9 @@ BOOL LLVOVolume::lineSegmentIntersect(const LLVector4a& start, const LLVector4a&  bool LLVOVolume::treatAsRigged()  {  	return isSelected() && -			isAttachment() && -			mDrawable.notNull() && -			mDrawable->isState(LLDrawable::RIGGED); +        (isAttachment() || isAnimatedObject()) && +        mDrawable.notNull() && +        mDrawable->isState(LLDrawable::RIGGED);  }  LLRiggedVolume* LLVOVolume::getRiggedVolume() | 
