diff --git a/xs/src/slic3r/GUI/3DScene.cpp b/xs/src/slic3r/GUI/3DScene.cpp index e398a1c37..323b4240b 100644 --- a/xs/src/slic3r/GUI/3DScene.cpp +++ b/xs/src/slic3r/GUI/3DScene.cpp @@ -1,5 +1,7 @@ #include "3DScene.hpp" +#include + namespace Slic3r { // caller is responsible for supplying NO lines with zero length @@ -15,6 +17,10 @@ _3DScene::_extrusionentity_to_verts_do(const Lines &lines, const std::vectorreserve_more(3 * 3 * 2 * (lines.size() + 1)); */ + + assert(! lines.empty()); + if (lines.empty()) + return; Line prev_line; Pointf prev_b1, prev_b2;