diff options
author | bubnikv <bubnikv@gmail.com> | 2017-02-15 19:51:46 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-02-15 19:51:46 +0300 |
commit | 3bfa6416d87f920d4656c3ab602f02ef41e33180 (patch) | |
tree | 097751066f461855782fb8bc4bb868398963e4af /xs/src/libslic3r/GCode.hpp | |
parent | 2ddabe5fa8e40519f8a5df4eda7ca8ebd3a265b0 (diff) |
Fixed https://github.com/prusa3d/Slic3r/issues/126version_1.33.4
by re-shuffling the simplification of a path to be extruded.
A non-simplified path was being used for a wipe move before,
causing an extremely detailed path to be exported into a G-code.
Diffstat (limited to 'xs/src/libslic3r/GCode.hpp')
-rw-r--r-- | xs/src/libslic3r/GCode.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/GCode.hpp b/xs/src/libslic3r/GCode.hpp index 51a77f41c..8fe94edc9 100644 --- a/xs/src/libslic3r/GCode.hpp +++ b/xs/src/libslic3r/GCode.hpp @@ -122,7 +122,7 @@ class GCode { std::string extrude(const ExtrusionEntity &entity, std::string description = "", double speed = -1); std::string extrude(ExtrusionLoop loop, std::string description = "", double speed = -1); std::string extrude(ExtrusionMultiPath multipath, std::string description = "", double speed = -1); - std::string extrude(const ExtrusionPath &path, std::string description = "", double speed = -1); + std::string extrude(ExtrusionPath path, std::string description = "", double speed = -1); std::string travel_to(const Point &point, ExtrusionRole role, std::string comment); bool needs_retraction(const Polyline &travel, ExtrusionRole role = erNone); std::string retract(bool toolchange = false); @@ -133,7 +133,7 @@ class GCode { private: Point _last_pos; bool _last_pos_defined; - std::string _extrude(ExtrusionPath path, std::string description = "", double speed = -1); + std::string _extrude(const ExtrusionPath &path, std::string description = "", double speed = -1); }; } |