diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-10-17 02:34:25 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-10-17 02:34:25 +0300 |
commit | 4fd38897fd66c245991a4066c7bb3db373087e70 (patch) | |
tree | 30a91cd0ded86278929869ec265c939fc839e18a /ArcWelder/unwritten_command.h | |
parent | 04958af691abfebc8314b300b4d8676f074439a7 (diff) |
Add additional statistics. Fix windows c++ build for python 2.7 compilers.
Diffstat (limited to 'ArcWelder/unwritten_command.h')
-rw-r--r-- | ArcWelder/unwritten_command.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ArcWelder/unwritten_command.h b/ArcWelder/unwritten_command.h index 5591dbe..5c6f151 100644 --- a/ArcWelder/unwritten_command.h +++ b/ArcWelder/unwritten_command.h @@ -31,20 +31,25 @@ struct unwritten_command is_extruder_relative = false; e_relative = 0; offset_e = 0; + extrusion_length = 0; } - unwritten_command(parsed_command &cmd, bool is_relative) { - is_relative = false; + unwritten_command(parsed_command &cmd, bool is_relative, double command_length) { + is_extruder_relative = is_relative; command = cmd; + extrusion_length = command_length; } - unwritten_command(position* p) { + unwritten_command(position* p, double command_length) { + e_relative = p->get_current_extruder().e_relative; offset_e = p->get_current_extruder().get_offset_e(); is_extruder_relative = p->is_extruder_relative; command = p->command; + extrusion_length = command_length; } bool is_extruder_relative; double e_relative; double offset_e; + double extrusion_length; parsed_command command; std::string to_string(bool rewrite, std::string additional_comment) |