Fixed bug when exporting binary FBX

Fixed vector subscript out of range bug when NULL_RECORD is passed to PutString and is actually null
This commit is contained in:
Umesh Rajesh Ramchandani
2022-12-02 13:59:08 +01:00
parent 0fdae2879d
commit 2d372b302f
2 changed files with 2 additions and 1 deletions

View File

@@ -360,7 +360,7 @@ void FBX::Node::EndBinary(
bool has_children
) {
// if there were children, add a null record
if (has_children) { s.PutString(Assimp::FBX::NULL_RECORD); }
if (has_children) { s.PutString(Assimp::FBX::NULL_RECORD_STRING); }
// now go back and write initial pos
this->end_pos = s.Tell();