From 50d3894e3298ebce4c826c888d35e964bafc7867 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 27 Sep 2019 18:47:08 +0200 Subject: [PATCH] Fix of the ShortestPath.hpp interface: Provide non-move variant. --- src/libslic3r/ShortestPath.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/ShortestPath.hpp b/src/libslic3r/ShortestPath.hpp index 1b91b59cb..b06d165d3 100644 --- a/src/libslic3r/ShortestPath.hpp +++ b/src/libslic3r/ShortestPath.hpp @@ -23,6 +23,7 @@ void reorder_extrusion_paths(std::vector &extrusion_paths, const Point *start_near = nullptr); Polylines chain_polylines(Polylines &&src, const Point *start_near = nullptr); +inline Polylines chain_polylines(const Polylines& src, const Point* start_near = nullptr) { Polylines tmp(src); return chain_polylines(std::move(tmp)); } std::vector chain_clipper_polynodes(const Points &points, const std::vector &items);