mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-07 01:57:38 +00:00
Fix: clear belt fields in GCodeProcessorResult::reset() (R2)
reset() cleared the sibling machine_frame_transform_active but not belt_tilt_angle/belt_z_origin/preslice_remap_*; a reused result carried stale belt metadata into a subsequent normal print, flipping the store_z branch and corrupting start-gcode preview Z for non-belt prints.
This commit is contained in:
@@ -2531,6 +2531,11 @@ void GCodeProcessorResult::reset() {
|
||||
timelapse_warning_code = 0;
|
||||
printable_height = 0.0f;
|
||||
machine_frame_transform_active = false;
|
||||
belt_tilt_angle = 0.f;
|
||||
belt_z_origin = 0.f;
|
||||
preslice_remap_x = RemapAxis::PosX;
|
||||
preslice_remap_y = RemapAxis::PosY;
|
||||
preslice_remap_z = RemapAxis::PosZ;
|
||||
settings_ids.reset();
|
||||
filaments_count = 0;
|
||||
backtrace_enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user