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;