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