summaryrefslogtreecommitdiff
path: root/indra/llcharacter/llmotioncontroller.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-16 08:18:19 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-16 08:18:19 -0400
commite8a196f5fff37a9f2aa2bd5b3a7500682aeb8ce7 (patch)
tree79bf0c084b3f4182f011873b0c920f0ffdf4ad70 /indra/llcharacter/llmotioncontroller.cpp
parent82aec2a8ef37f117392731c3a55bfa208e94bde7 (diff)
SL-111 WIP - animation dumping/logging
Diffstat (limited to 'indra/llcharacter/llmotioncontroller.cpp')
-rwxr-xr-xindra/llcharacter/llmotioncontroller.cpp16
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())
{