diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index c8cd5f69f..f094b7a82 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -4125,6 +4125,7 @@ GCode::LayerResult GCode::process_layer( config.set_key_value("layer_z", new ConfigOptionFloat(print_z)); config.set_key_value("max_layer_z", new ConfigOptionFloat(m_max_layer_z)); config.set_key_value("most_used_physical_extruder_id", new ConfigOptionInt(m_config.physical_extruder_map.get_at(most_used_extruder))); + config.set_key_value("curr_physical_extruder_id", new ConfigOptionInt(m_config.physical_extruder_map.get_at(ctx.curr_extruder_id))); config.set_key_value("timelapse_pos_x", new ConfigOptionInt(timelapse_pos.x())); config.set_key_value("timelapse_pos_y", new ConfigOptionInt(timelapse_pos.y())); config.set_key_value("has_timelapse_safe_pos", new ConfigOptionBool(timelapse_pos != DefaultTimelapsePos));