summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbvhpreview.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-08 11:16:51 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-08 11:16:51 -0400
commit940adfe4d02ab0ecf69635afe7f959abe1fe2c44 (patch)
tree59fa63e34504193c1230bfd47cfc38deb2594bff /indra/newview/llfloaterbvhpreview.cpp
parentfde0868231a25b8c9ce03a86cb53f1738d35688d (diff)
WIP bvh diagnostics
Diffstat (limited to 'indra/newview/llfloaterbvhpreview.cpp')
-rwxr-xr-xindra/newview/llfloaterbvhpreview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloaterbvhpreview.cpp b/indra/newview/llfloaterbvhpreview.cpp
index 669ffa7c59..66c433684b 100755
--- a/indra/newview/llfloaterbvhpreview.cpp
+++ b/indra/newview/llfloaterbvhpreview.cpp
@@ -280,9 +280,17 @@ BOOL LLFloaterBvhPreview::postBuild()
LLDataPackerBinaryBuffer dp(buffer, buffer_size);
// pass animation data through memory buffer
+ LL_INFOS("BVH") << "Serializing loaderp" << LL_ENDL;
loaderp->serialize(dp);
dp.reset();
+ LL_INFOS("BVH") << "Deserializing motionp" << LL_ENDL;
BOOL success = motionp && motionp->deserialize(dp);
+ LL_INFOS("BVH") << "TEST: Serializing motionp" << LL_ENDL;
+ S32 test_file_size = motionp->getFileSize();
+ U8* test_buffer = new U8[test_file_size];
+ LLDataPackerBinaryBuffer test_dp(test_buffer, test_file_size);
+ motionp->serialize(test_dp);
+ LL_INFOS("BVH") << "Done" << LL_ENDL;
delete []buffer;