fixed joint info chunk size calculation for
This commit is contained in:
parent
f5da1d16b2
commit
e51648245e
|
@ -214,8 +214,8 @@ void WriteJoints(const std::vector<MeshJoint> &joints, FILE *fp)
|
||||||
// add up all the variable length joint names and parent joint names
|
// add up all the variable length joint names and parent joint names
|
||||||
for (uint32_t i = 0; i < count; ++i)
|
for (uint32_t i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
size += joints[i].name.length() + 1; // include null terminator
|
size += joints[i].name.length() + 1; // include null terminator
|
||||||
size += joints[i].name.length() + 1; // ditto
|
size += joints[i].parentName.length() + 1; // ditto
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs("JNT", fp);
|
fputs("JNT", fp);
|
||||||
|
|
Reference in a new issue