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
d0033f99
Commit
d0033f99
authored
Dec 14, 2015
by
Max Lyon
Browse files
fix crash in OMWriter when writing an empty mesh with colors
parent
33808615
Pipeline
#366
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/writer/OMWriter.cc
View file @
d0033f99
...
...
@@ -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
));
...
...
Jan Möbius
@moebius
mentioned in commit
5c0223ed
·
Dec 15, 2015
mentioned in commit
5c0223ed
mentioned in commit 5c0223ed443e1f955489dbe10b0bf425a0d5d275
Toggle commit list
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