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 committed by Ansariel
parent edf071fd84
commit c5433f1836
1 changed files with 6 additions and 1 deletions

View File

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