diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-13 15:01:22 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-13 15:01:22 +0300 | 
| commit | a350009614c0840e5535d5c7d2281ecb3104642d (patch) | |
| tree | 0b6c8c2871df4da89a2d1b6de2b5d83de39ee52d /indra | |
| parent | 31d80c21b5e17e962c0fdb5a370d3ddea8694768 (diff) | |
SL-14107 fixed crash due to missing animation when avatar hits the ground after falling down
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcharacter/llkeyframefallmotion.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/indra/llcharacter/llkeyframefallmotion.cpp b/indra/llcharacter/llkeyframefallmotion.cpp index 60ab2e9929..7842f0e5fb 100644 --- a/indra/llcharacter/llkeyframefallmotion.cpp +++ b/indra/llcharacter/llkeyframefallmotion.cpp @@ -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()) | 
