mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Fixed regression in placement of Color Change event at the correct layer.
This commit is contained in:
parent
10d1b459bb
commit
2c958c021d
2 changed files with 1 additions and 9 deletions
|
@ -484,7 +484,7 @@ void ToolOrdering::assign_custom_gcodes(const Print &print)
|
|||
coordf_t print_z_below = 0.;
|
||||
if (auto it_lt_below = it_lt; ++ it_lt_below != m_layer_tools.rend())
|
||||
print_z_below = it_lt_below->print_z;
|
||||
if (custom_gcode.print_z > print_z_below - EPSILON) {
|
||||
if (custom_gcode.print_z > print_z_below + 0.5 * EPSILON) {
|
||||
// The custom G-code applies to the current layer.
|
||||
if (custom_gcode.gcode != ColorChangeCode || extruder_printing_above[unsigned(custom_gcode.extruder - 1)])
|
||||
// If it is color change, it will actually be useful as the exturder above will print.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue