OM Writer: Added Mark to the format header to identify end of stream correctly (Thanks to Jamie Kydd for the patch)

This commit is contained in:
Jan Möbius
2016-12-27 08:10:10 +01:00
parent 00a95438f7
commit da1ec03c6e
4 changed files with 10 additions and 1 deletions

View File

@@ -211,6 +211,8 @@ bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt
if (!read_binary_mesh_chunk(_is, _bi, _opt, swap))
return false;
break;
case OMFormat::Chunk::Entity_Sentinel:
return true;
default:
return false;
}