mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Add a new placehoder is_extruder_used
for IDEX printers (#951)
* add placeholder 'is_extruder_used' for IDEX * fix code_font using fixed-width font * fix cmd+shift+g
This commit is contained in:
parent
d192a8cc61
commit
4481fe62b5
3 changed files with 14 additions and 3 deletions
|
@ -1725,6 +1725,12 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||
m_placeholder_parser.set("has_wipe_tower", has_wipe_tower);
|
||||
//m_placeholder_parser.set("has_single_extruder_multi_material_priming", has_wipe_tower && print.config().single_extruder_multi_material_priming);
|
||||
m_placeholder_parser.set("total_toolchanges", std::max(0, print.wipe_tower_data().number_of_toolchanges)); // Check for negative toolchanges (single extruder mode) and set to 0 (no tool change).
|
||||
|
||||
std::vector<unsigned char> is_extruder_used(print.config().filament_diameter.size(), 0);
|
||||
for (unsigned int extruder : tool_ordering.all_extruders())
|
||||
is_extruder_used[extruder] = true;
|
||||
m_placeholder_parser.set("is_extruder_used", new ConfigOptionBools(is_extruder_used));
|
||||
|
||||
Vec2f plate_offset = m_writer.get_xy_offset();
|
||||
{
|
||||
BoundingBoxf bbox(print.config().printable_area.values);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue