summaryrefslogtreecommitdiff
path: root/indra/newview
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/newview
parent82aec2a8ef37f117392731c3a55bfa208e94bde7 (diff)
SL-111 WIP - animation dumping/logging
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/app_settings/logcontrol.xml1
-rwxr-xr-xindra/newview/llpreviewanim.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/app_settings/logcontrol.xml b/indra/newview/app_settings/logcontrol.xml
index de3732f339..6d5cf6e8f7 100755
--- a/indra/newview/app_settings/logcontrol.xml
+++ b/indra/newview/app_settings/logcontrol.xml
@@ -42,6 +42,7 @@
</array>
<key>tags</key>
<array>
+ <string>BVH</string>
<!-- sample entry for debugging specific items
<string>Avatar</string>
<string>Inventory</string>
diff --git a/indra/newview/llpreviewanim.cpp b/indra/newview/llpreviewanim.cpp
index 35ac0537a3..6c5b82b62e 100755
--- a/indra/newview/llpreviewanim.cpp
+++ b/indra/newview/llpreviewanim.cpp
@@ -37,6 +37,7 @@
#include "lllineeditor.h"
#include "lluictrlfactory.h"
#include "lluictrlfactory.h"
+#include "lldatapacker.h"
extern LLAgent gAgent;
@@ -109,6 +110,12 @@ void LLPreviewAnim::play(const LLSD& param)
}
else
{
+ // FIXME BENTO - TEMP HACK TO DUMP AS FILE
+ LLKeyframeMotion *motionp = dynamic_cast<LLKeyframeMotion*>(gAgentAvatarp->findMotion(itemID));
+ if (motionp && motionp->isLoaded())
+ {
+ motionp->dumpToFile(item->getName());
+ }
gAgentAvatarp->startMotion(item->getAssetUUID());
}