mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-22 21:50:51 -05:00
Fix: uninitialized Pressure Advance value in G-code preview (#17746)
`GCodeProcessor::m_pressure_advance` was not set in `reset()`, so G-code without a pressure advance command showed a random PA value in the preview. It is now reset to 0 with the other per-move state, and a test checks that a reset processor does not keep the previous G-code's value.
This commit is contained in:
2 files changed
+31
No files matched your search
@@ -3779,6 +3779,7 @@ void GCodeProcessor::reset()
|
||||
m_travel_dist = 0.0f;
|
||||
m_fan_speed = 0.0f;
|
||||
m_z_offset = 0.0f;
|
||||
m_pressure_advance = 0.0f;
|
||||
|
||||
m_extrusion_role = erNone;
|
||||
|
||||
|
||||
Reference in new issue
Block a user