diff --git a/code/FBXExportNode.cpp b/code/FBXExportNode.cpp index e5215466a..e90a50e67 100644 --- a/code/FBXExportNode.cpp +++ b/code/FBXExportNode.cpp @@ -252,7 +252,8 @@ void FBX::Node::DumpChildren( } else { std::ostringstream ss; DumpChildrenAscii(ss, indent); - s.PutString(ss.str()); + if (ss.tellp() > 0) + s.PutString(ss.str()); } } @@ -266,7 +267,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()); } }