From a85a0a8191265bdcc35463f52e62c392aaa0022e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Wed, 24 Jan 2024 11:25:02 +0100 Subject: [PATCH] SPE-2098: Show color_change_extruder in Custom G-code editor. --- src/libslic3r/PrintConfig.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index f7ead0b0da..e72e9bff92 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -5397,6 +5397,8 @@ static std::map 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& 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;