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]
This commit is contained in:
parent
460887cdde
commit
3d8bd85187
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user