Fixed assert in creation of model for sinking contours rendering when vertices count is zero
This commit is contained in:
parent
15046aba42
commit
fc929d9faf
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ void GLVolume::SinkingContours::update()
|
|||
init_data.add_triangle(vertices_counter - 3, vertices_counter - 2, vertices_counter - 1);
|
||||
}
|
||||
}
|
||||
m_model.init_from(std::move(init_data));
|
||||
|
||||
if (init_data.vertices_count() > 0)
|
||||
m_model.init_from(std::move(init_data));
|
||||
}
|
||||
|
||||
void GLVolume::NonManifoldEdges::render()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue