SL-14107 fixed crash due to missing animation when avatar hits the ground after falling down

master
Mnikolenko Productengine 2020-10-13 15:01:22 +03:00
parent 31d80c21b5
commit a350009614
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ LLMotion::LLMotionInitStatus LLKeyframeFallMotion::onInitialize(LLCharacter *cha
// load keyframe data, setup pose and joint states
LLMotion::LLMotionInitStatus result = LLKeyframeMotion::onInitialize(character);
if (result != LLMotion::STATUS_SUCCESS)
{
return result;
}
for (U32 jm=0; jm<mJointMotionList->getNumJointMotions(); jm++)
{
if (!mJointStates[jm]->getJoint())