Merge branch 'master' into featureMeshConversion

This commit is contained in:
Jan Möbius
2016-12-21 08:44:39 +01:00
2 changed files with 26 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
// ---------- write face normals
if ( _be.has_face_normals() && _opt.check(Options::FaceNormal) )
if (_be.n_faces() && _be.has_face_normals() && _opt.check(Options::FaceNormal) )
{
#define NEW_STYLE 0
#if NEW_STYLE
@@ -353,7 +353,7 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
// ---------- write face color
if (_be.has_face_colors() && _opt.check( Options::FaceColor ))
if (_be.n_faces() && _be.has_face_colors() && _opt.check( Options::FaceColor ))
{
#define NEW_STYLE 0
#if NEW_STYLE