Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
5c0223ed
Commit
5c0223ed
authored
Dec 14, 2015
by
Max Lyon
Committed by
Jan Möbius
Dec 15, 2015
Browse files
fix crash in OMWriter when writing an empty mesh with colors
(cherry picked from commit
d0033f99
)
parent
4b543fc0
Pipeline
#398
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/writer/OMWriter.cc
View file @
5c0223ed
...
...
@@ -248,7 +248,7 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
}
// ---------- write vertex color
if
(
_opt
.
check
(
Options
::
VertexColor
)
&&
_be
.
has_vertex_colors
()
)
if
(
_be
.
n_vertices
()
&&
_opt
.
check
(
Options
::
VertexColor
)
&&
_be
.
has_vertex_colors
()
)
{
Vec3uc
c
=
_be
.
color
(
VertexHandle
(
0
));
...
...
Write
Preview
Supports
Markdown
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