diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-05-08 11:16:51 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-05-08 11:16:51 -0400 |
commit | 940adfe4d02ab0ecf69635afe7f959abe1fe2c44 (patch) | |
tree | 59fa63e34504193c1230bfd47cfc38deb2594bff /indra/newview/llfloaterbvhpreview.cpp | |
parent | fde0868231a25b8c9ce03a86cb53f1738d35688d (diff) |
WIP bvh diagnostics
Diffstat (limited to 'indra/newview/llfloaterbvhpreview.cpp')
-rwxr-xr-x | indra/newview/llfloaterbvhpreview.cpp | 8 |
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; |