From fc0067ccba2f48967d2505ad4a880e43c98250ab Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Thu, 12 Oct 2023 10:02:27 -0500 Subject: [PATCH] Remove `fix_slicing_errors` because it makes no sense (#2370) this also fixes #2344 --- src/libslic3r/PrintObjectSlice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/PrintObjectSlice.cpp b/src/libslic3r/PrintObjectSlice.cpp index 537be496c4..afb4aa1af7 100644 --- a/src/libslic3r/PrintObjectSlice.cpp +++ b/src/libslic3r/PrintObjectSlice.cpp @@ -656,6 +656,7 @@ void reGroupingLayerPolygons(std::vector& gvss, ExPolygons } } +/* std::string fix_slicing_errors(PrintObject* object, LayerPtrs &layers, const std::function &throw_if_canceled, int &firstLayerReplacedBy) { std::string error_msg;//BBS @@ -777,6 +778,7 @@ std::string fix_slicing_errors(PrintObject* object, LayerPtrs &layers, const std return error_msg; } +*/ void groupingVolumesForBrim(PrintObject* object, LayerPtrs& layers, int firstLayerReplacedBy) { @@ -813,7 +815,7 @@ void PrintObject::slice() m_print->throw_if_canceled(); int firstLayerReplacedBy = 0; -#if 1 +#if 0 // Fix the model. //FIXME is this the right place to do? It is done repeateadly at the UI and now here at the backend. std::string warning = fix_slicing_errors(this, m_layers, [this](){ m_print->throw_if_canceled(); }, firstLayerReplacedBy);