From f288af0b5e339f540c651b89555d5483cf93dce8 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 21 Dec 2018 13:55:14 +0100 Subject: [PATCH] Fixed an out-of-bound situation in SLA support generator --- src/libslic3r/SLA/SLAAutoSupports.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/SLA/SLAAutoSupports.cpp b/src/libslic3r/SLA/SLAAutoSupports.cpp index 5a7ce6aab..5011c485b 100644 --- a/src/libslic3r/SLA/SLAAutoSupports.cpp +++ b/src/libslic3r/SLA/SLAAutoSupports.cpp @@ -254,12 +254,11 @@ std::vector SLAAutoSupports::uniformly_cover(const std::pair{unscale(out(0), out(1), out(2))}; + return std::vector{unscale(out(0), out(1), island.second)}; } HOLE_HIT: @@ -296,10 +295,8 @@ HOLE_HIT: } } } - if (add_it) { - out(2) = island.second; + if (add_it) island_new_points.emplace_back(unscaled_out); - } } return island_new_points; }