diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llcharacter/llmotioncontroller.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llcharacter/llmotioncontroller.cpp')
-rw-r--r-- | linden/indra/llcharacter/llmotioncontroller.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/llcharacter/llmotioncontroller.cpp b/linden/indra/llcharacter/llmotioncontroller.cpp index d1a2a53..028cf22 100644 --- a/linden/indra/llcharacter/llmotioncontroller.cpp +++ b/linden/indra/llcharacter/llmotioncontroller.cpp | |||
@@ -746,7 +746,7 @@ void LLMotionController::updateMotion() | |||
746 | 746 | ||
747 | // is calculating a new keyframe pose, make sure the last one gets applied | 747 | // is calculating a new keyframe pose, make sure the last one gets applied |
748 | mPoseBlender.interpolate(1.f); | 748 | mPoseBlender.interpolate(1.f); |
749 | mPoseBlender.clearBlenders(); | 749 | clearBlenders(); |
750 | 750 | ||
751 | mTimeStepCount = quantum_count; | 751 | mTimeStepCount = quantum_count; |
752 | mLastTime = mTime; | 752 | mLastTime = mTime; |
@@ -824,6 +824,13 @@ void LLMotionController::updateMotion() | |||
824 | //----------------------------------------------------------------------------- | 824 | //----------------------------------------------------------------------------- |
825 | BOOL LLMotionController::activateMotionInstance(LLMotion *motion, F32 time) | 825 | BOOL LLMotionController::activateMotionInstance(LLMotion *motion, F32 time) |
826 | { | 826 | { |
827 | // It's not clear why the getWeight() line seems to be crashing this, but | ||
828 | // hopefully this fixes it. | ||
829 | if (motion == NULL || motion->getPose() == NULL) | ||
830 | { | ||
831 | return FALSE; | ||
832 | } | ||
833 | |||
827 | if (mLoadingMotions.find(motion) != mLoadingMotions.end()) | 834 | if (mLoadingMotions.find(motion) != mLoadingMotions.end()) |
828 | { | 835 | { |
829 | // we want to start this motion, but we can't yet, so flag it as started | 836 | // we want to start this motion, but we can't yet, so flag it as started |