mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-10 16:31:49 +08:00
Fixed assert in creation of model for sinking contours rendering when vertices count is zero
This commit is contained in:
parent
15046aba42
commit
fc929d9faf
@ -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…
x
Reference in New Issue
Block a user