Merge pull request #2450 from mlavik1/fbxexport_crashfix
Fix for crash in StreamWriter::PutString when exporting ASCII FBXpull/2427/head
commit
2582ae53ee
|
@ -253,7 +253,8 @@ void FBX::Node::DumpChildren(
|
|||
} else {
|
||||
std::ostringstream ss;
|
||||
DumpChildrenAscii(ss, indent);
|
||||
s.PutString(ss.str());
|
||||
if (ss.tellp() > 0)
|
||||
s.PutString(ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -267,7 +268,8 @@ void FBX::Node::End(
|
|||
} else {
|
||||
std::ostringstream ss;
|
||||
EndAscii(ss, indent, has_children);
|
||||
s.PutString(ss.str());
|
||||
if (ss.tellp() > 0)
|
||||
s.PutString(ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue