From e51648245e49a182ade42ecc59e59058cbaef333 Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 28 Apr 2011 23:27:29 -0400 Subject: [PATCH] fixed joint info chunk size calculation for --- AssimpToMesh/src/convert/meshutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AssimpToMesh/src/convert/meshutils.cpp b/AssimpToMesh/src/convert/meshutils.cpp index f40717c..151e0f6 100644 --- a/AssimpToMesh/src/convert/meshutils.cpp +++ b/AssimpToMesh/src/convert/meshutils.cpp @@ -214,8 +214,8 @@ void WriteJoints(const std::vector &joints, FILE *fp) // add up all the variable length joint names and parent joint names for (uint32_t i = 0; i < count; ++i) { - size += joints[i].name.length() + 1; // include null terminator - size += joints[i].name.length() + 1; // ditto + size += joints[i].name.length() + 1; // include null terminator + size += joints[i].parentName.length() + 1; // ditto } fputs("JNT", fp);