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
edf071fd84
commit
c5433f1836
|
|
@ -5287,7 +5287,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