Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
dc79c22a
Commit
dc79c22a
authored
Dec 19, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch)
parent
5e9f74d7
Pipeline
#3969
passed with stage
in 41 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/OpenMesh/Core/IO/writer/OMWriter.cc
src/OpenMesh/Core/IO/writer/OMWriter.cc
+2
-2
No files found.
src/OpenMesh/Core/IO/writer/OMWriter.cc
View file @
dc79c22a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment