SL-16598 Stuck in Ground Sit

'Sitting' motion was in a loading state, but not active, which resulted in viewer dropping 'sitting' state
meow-7.2.2
Andrey Kleshchev 2022-07-07 22:59:34 +03:00
parent e292bf2633
commit b6e8596cd9
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}
}
//--------------------------------------------------------------------