From a350009614c0840e5535d5c7d2281ecb3104642d Mon Sep 17 00:00:00 2001
From: Mnikolenko Productengine <mnikolenko@productengine.com>
Date: Tue, 13 Oct 2020 15:01:22 +0300
Subject: [PATCH] SL-14107 fixed crash due to missing animation when avatar
 hits the ground after falling down

---
 indra/llcharacter/llkeyframefallmotion.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/indra/llcharacter/llkeyframefallmotion.cpp b/indra/llcharacter/llkeyframefallmotion.cpp
index 60ab2e99296..7842f0e5fbc 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())
-- 
GitLab