SL-16598 Stuck in Ground Sit
'Sitting' motion was in a loading state, but not active, which resulted in viewer dropping 'sitting' statemeow-7.2.2
parent
e292bf2633
commit
b6e8596cd9
|
|
@ -4619,7 +4619,12 @@ bool LLVOAvatar::updateCharacter(LLAgent &agent)
|
|||
}
|
||||
else if (!getParent() && isSitting() && !isMotionActive(ANIM_AGENT_SIT_GROUND_CONSTRAINED))
|
||||
{
|
||||
getOffObject();
|
||||
// If we are starting up, motion might be loading
|
||||
LLMotion *motionp = mMotionController.findMotion(ANIM_AGENT_SIT_GROUND_CONSTRAINED);
|
||||
if (!motionp || !mMotionController.isMotionLoading(motionp))
|
||||
{
|
||||
getOffObject();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue