diff options
author | Bryan Smith <bryan.smith.dev@gmail.com> | 2019-02-09 02:02:46 +0300 |
---|---|---|
committer | Vojtěch Bubník <5830947+bubnikv@users.noreply.github.com> | 2019-06-03 15:47:18 +0300 |
commit | 3d8bd85187674f18f2fd2fde4479eee707f33bd3 (patch) | |
tree | 101a0d2c818ca04c04365f8918c949fc94146025 /src | |
parent | 460887cdde9ed8f4fda0778add884f14667295ce (diff) |
Add new [total_layer_count] placeholder everywhere [layer_num] is avalible.
Missed adding [total_layer_count] to layer_gcode
Revert "Add new [total_layer_count] placeholder everywhere [layer_num] is avalible."
This reverts commit e29e766224a14e1f237908c3e5507ac5586ca5b7.
Revert "Missed adding [total_layer_count] to layer_gcode"
This reverts commit f07907a8acc450e9ae1220c6a9fe4f7c7e6d896c.
Better way to add [total_layer_count]
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/GCode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 9ef2b8896..c42669de0 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -781,6 +781,8 @@ void GCode::_do_export(Print &print, FILE *file) m_placeholder_parser.set("initial_tool", initial_extruder_id); m_placeholder_parser.set("initial_extruder", initial_extruder_id); m_placeholder_parser.set("current_extruder", initial_extruder_id); + //Set variable for total layer count so it can be used in custom gcode. + m_placeholder_parser.set("total_layer_count", m_layer_count); // Useful for sequential prints. m_placeholder_parser.set("current_object_idx", 0); // For the start / end G-code to do the priming and final filament pull in case there is no wipe tower provided. |