mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 12:01:59 +08:00
SPE-2098: Show color_change_extruder in Custom G-code editor.
This commit is contained in:
parent
91323230e6
commit
a85a0a8191
@ -5397,6 +5397,8 @@ static std::map<t_custom_gcode_key, t_config_option_keys> s_CustomGcodeSpecificP
|
||||
{"before_layer_gcode", {"layer_num", "layer_z", "max_layer_z"}},
|
||||
{"layer_gcode", {"layer_num", "layer_z", "max_layer_z"}},
|
||||
{"toolchange_gcode", {"layer_num", "layer_z", "max_layer_z", "previous_extruder", "next_extruder", "toolchange_z"}},
|
||||
{"color_change_gcode", {"color_change_extruder"}},
|
||||
{"pause_print_gcode", {"color_change_extruder"}},
|
||||
};
|
||||
|
||||
const std::map<t_custom_gcode_key, t_config_option_keys>& custom_gcode_specific_placeholders()
|
||||
@ -5435,6 +5437,10 @@ CustomGcodeSpecificConfigDef::CustomGcodeSpecificConfigDef()
|
||||
def = this->add("toolchange_z", coFloat);
|
||||
def->label = L("Toolchange Z");
|
||||
def->tooltip = L("Height above the print bed when the toolchange takes place. Usually the same as layer_z, but can be different.");
|
||||
|
||||
def = this->add("color_change_extruder", coInt);
|
||||
def->label = L("Color change extruder");
|
||||
def->tooltip = L("Index of the extruder for which color change will be performed. The index is zero based (first extruder has index 0).");
|
||||
}
|
||||
|
||||
const CustomGcodeSpecificConfigDef custom_gcode_specific_config_def;
|
||||
|
Loading…
x
Reference in New Issue
Block a user