mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fixed splitting of triangle meshes, where the splitting function
may produce a single triangle, which is then removed by the repair function.
This commit is contained in:
@@ -1699,6 +1699,10 @@ size_t ModelVolume::split(unsigned int max_extruders)
|
|||||||
|
|
||||||
for (TriangleMesh *mesh : meshptrs) {
|
for (TriangleMesh *mesh : meshptrs) {
|
||||||
mesh->repair();
|
mesh->repair();
|
||||||
|
if (mesh->empty())
|
||||||
|
// Repair may have removed unconnected triangles, thus emptying the mesh.
|
||||||
|
continue;
|
||||||
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
{
|
{
|
||||||
this->set_mesh(std::move(*mesh));
|
this->set_mesh(std::move(*mesh));
|
||||||
|
|||||||
Reference in New Issue
Block a user