diff --git a/xs/src/libslic3r/GUI/3DScene.cpp b/xs/src/libslic3r/GUI/3DScene.cpp index d7513d2fe..5f61b37b3 100644 --- a/xs/src/libslic3r/GUI/3DScene.cpp +++ b/xs/src/libslic3r/GUI/3DScene.cpp @@ -147,7 +147,9 @@ _3DScene::_extrusionentity_to_verts_do(const Lines &lines, const std::vectorpush_norm(xy_left_normal); qverts->push_vert(a2.x, a2.y, middle_z); - } else if (i == lines.size()-1) { + } + // we don't use 'else' because both cases are true if we have only one line + if (i == lines.size()-1) { // normal pointing downwards qverts->push_norm(0,0,-1); qverts->push_vert(b.x, b.y, bottom_z);