From 0c00243cbff073696ab7fd4adf8baa55b943b6ef Mon Sep 17 00:00:00 2001 From: "salt.wei" Date: Fri, 10 Mar 2023 11:39:54 +0800 Subject: [PATCH] ENH: remove useless code Signed-off-by: salt.wei Change-Id: I1dca5e366c2c681a4137c2187ecc7d59663e3b86 --- src/libslic3r/PrintObjectSlice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/PrintObjectSlice.cpp b/src/libslic3r/PrintObjectSlice.cpp index 9dcdbe044..e381aabdc 100644 --- a/src/libslic3r/PrintObjectSlice.cpp +++ b/src/libslic3r/PrintObjectSlice.cpp @@ -737,6 +737,7 @@ void PrintObject::slice() m_layers = new_layers(this, generate_object_layers(m_slicing_params, layer_height_profile)); this->slice_volumes(); m_print->throw_if_canceled(); +#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(); }); @@ -746,6 +747,7 @@ void PrintObject::slice() BOOST_LOG_TRIVIAL(info) << warning; this->active_step_add_warning(PrintStateBase::WarningLevel::CRITICAL, warning, PrintStateBase::SlicingReplaceInitEmptyLayers); } +#endif // Update bounding boxes, back up raw slices of complex models. tbb::parallel_for( tbb::blocked_range(0, m_layers.size()),