diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-05-04 12:51:01 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-05-04 12:51:01 +0300 |
commit | e03dd7094275b932a6dae5449afe0be67c6e225c (patch) | |
tree | d10da51a4168f0a3b1a9c56fd87f389f0d898aba | |
parent | 82556f261c7184d437a59b14ab51c25117200ace (diff) |
Insert polygon starting from first point that is within snap distance
Not really part of the ticket, but this was clearly intented behaviour
CURA-9158
-rw-r--r-- | src/utils/PolylineStitcher.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/PolylineStitcher.h b/src/utils/PolylineStitcher.h index 5f03a0bda..cab9bf5ee 100644 --- a/src/utils/PolylineStitcher.h +++ b/src/utils/PolylineStitcher.h @@ -183,7 +183,7 @@ public: { ++start_pos; } - chain.insert(chain.end(), (*closest.polygons)[closest.poly_idx].rbegin(), (*closest.polygons)[closest.poly_idx].rend()); + chain.insert(chain.end(), start_pos, (*closest.polygons)[closest.poly_idx].rend()); } for(size_t i = old_size; i < chain.size(); ++i) //Update chain length. { |