From 5fedb5f232e6b28055552d30963c2ca31c651734 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 5 Feb 2019 20:54:01 +0100 Subject: [PATCH] Fixed last buggy commit. --- src/libslic3r/Tesselate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Tesselate.cpp b/src/libslic3r/Tesselate.cpp index 7b241a8d6..f4ce0703d 100644 --- a/src/libslic3r/Tesselate.cpp +++ b/src/libslic3r/Tesselate.cpp @@ -24,6 +24,7 @@ public: { m_z = z_; m_flipped = flipped_; + m_output_triangles.clear(); std::vector coords; { size_t num_coords = expoly.contour.points.size(); @@ -51,7 +52,6 @@ public: gluTessEndContour(m_tesselator); } gluTessEndPolygon(m_tesselator); - m_output_triangles.clear(); m_intersection_points.clear(); return std::move(m_output_triangles); } @@ -60,6 +60,7 @@ public: { m_z = z_; m_flipped = flipped_; + m_output_triangles.clear(); std::vector coords; { size_t num_coords = 0; @@ -94,7 +95,6 @@ public: } gluTessEndPolygon(m_tesselator); } - m_output_triangles.clear(); m_intersection_points.clear(); return std::move(m_output_triangles); }