From d78bb6de2d5e85d054b7b46051661a98e75cd602 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 26 Sep 2023 19:59:27 +0200 Subject: [PATCH] Add missing 'perform_prime' member-variable. Note that this needs the updated GRPC definitions as well! -- This caused that variable to always be (re)set to false, even when no plugin was present, due to the 'identity' conversion taking place. (Maybe we should stop that in general, since that implies that we copy the data even when no plugin is present.) In any case, even if it wouldn't have caused this particular bug, it's an oversight that should be fixed anyway. should fix CURA-11084 --- src/plugins/converters.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/converters.cpp b/src/plugins/converters.cpp index 6e93f34afd..72a8166de7 100644 --- a/src/plugins/converters.cpp +++ b/src/plugins/converters.cpp @@ -345,6 +345,7 @@ gcode_paths_modify_request::value_type gcode_path->set_retract(path.retract); gcode_path->set_unretract_before_last_travel_move(path.unretract_before_last_travel_move); gcode_path->set_perform_z_hop(path.perform_z_hop); + gcode_path->set_perform_prime(path.perform_prime); gcode_path->set_skip_agressive_merge_hint(path.skip_agressive_merge_hint); gcode_path->set_done(path.done); gcode_path->set_fan_speed(path.getFanSpeed()); @@ -458,6 +459,7 @@ gcode_paths_modify_response::native_value_type .retract = gcode_path_msg.retract(), .unretract_before_last_travel_move = gcode_path_msg.unretract_before_last_travel_move(), .perform_z_hop = gcode_path_msg.perform_z_hop(), + .perform_prime = gcode_path_msg.perform_prime(), .skip_agressive_merge_hint = gcode_path_msg.skip_agressive_merge_hint(), .done = gcode_path_msg.done(), .fan_speed = gcode_path_msg.fan_speed(),