From a443b2789598f295f26c25bf99a986bc4e379fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 1 Nov 2024 21:29:10 +0100 Subject: [PATCH] Remove obsolete assert in the multi-material segmentation. --- src/libslic3r/MultiMaterialSegmentation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libslic3r/MultiMaterialSegmentation.cpp b/src/libslic3r/MultiMaterialSegmentation.cpp index 35a857da86..5297fdcc92 100644 --- a/src/libslic3r/MultiMaterialSegmentation.cpp +++ b/src/libslic3r/MultiMaterialSegmentation.cpp @@ -827,10 +827,8 @@ static std::vector extract_colored_segments(const std::vector()); edge->color(VD_ANNOTATION::DELETED); - if (next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR || next_vertex.color() == VD_ANNOTATION::DELETED) { - assert(next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR); + if (next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR || next_vertex.color() == VD_ANNOTATION::DELETED) break; - } edge = edge->twin(); } while (edge = edge->twin()->next(), edge != cell_range.edge_begin);