diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-05-16 08:18:19 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-05-16 08:18:19 -0400 |
commit | e8a196f5fff37a9f2aa2bd5b3a7500682aeb8ce7 (patch) | |
tree | 79bf0c084b3f4182f011873b0c920f0ffdf4ad70 /indra/llcharacter/llmotioncontroller.cpp | |
parent | 82aec2a8ef37f117392731c3a55bfa208e94bde7 (diff) |
SL-111 WIP - animation dumping/logging
Diffstat (limited to 'indra/llcharacter/llmotioncontroller.cpp')
-rwxr-xr-x | indra/llcharacter/llmotioncontroller.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llcharacter/llmotioncontroller.cpp b/indra/llcharacter/llmotioncontroller.cpp index e02b139608..c134b316fc 100755 --- a/indra/llcharacter/llmotioncontroller.cpp +++ b/indra/llcharacter/llmotioncontroller.cpp @@ -377,6 +377,14 @@ LLMotion* LLMotionController::createMotion( const LLUUID &id ) case LLMotion::STATUS_SUCCESS: // add motion to our list mLoadedMotions.insert(motion); + // FIXME SO MUCH DUMP + { + LLKeyframeMotion *km = dynamic_cast<LLKeyframeMotion*>(motion); + if (km) + { + km->dumpToFile(""); + } + } break; default: LL_ERRS() << "Invalid initialization status" << LL_ENDL; @@ -780,6 +788,14 @@ void LLMotionController::updateLoadingMotions() mLoadingMotions.erase(curiter); // add motion to our loaded motion list mLoadedMotions.insert(motionp); + // FIXME SO MUCH DUMP + { + LLKeyframeMotion *km = dynamic_cast<LLKeyframeMotion*>(motionp); + if (km) + { + km->dumpToFile(""); + } + } // this motion should be playing if (!motionp->isStopped()) { |