From 519a982fe971910b89f459229873f7bb8cac4b63 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Sun, 9 Feb 2020 18:34:06 +0100 Subject: [PATCH] Fix of #3632: Crash if a thin wall object is not printable, therefore no extrusion is generated. Now the situation is detected and an exception is thrown. --- src/libslic3r/Print.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 8baf42427..d5a1fa178 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -1591,6 +1591,8 @@ void Print::process() } else if (! this->config().complete_objects.value) { // Initialize the tool ordering, so it could be used by the G-code preview slider for planning tool changes and filament switches. m_tool_ordering = ToolOrdering(*this, -1, false); + if (m_tool_ordering.empty() || m_tool_ordering.last_extruder() == unsigned(-1)) + throw std::runtime_error("The print is empty. The model is not printable with current print settings."); } this->set_done(psWipeTower); }