mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fix: Fixing the range check in ZAA code (#13452)
This commit is contained in:
@@ -48,7 +48,7 @@ LayerPtrs new_layers(
|
|||||||
}
|
}
|
||||||
if (zaa_active) {
|
if (zaa_active) {
|
||||||
slice_z = lo + z_offset;
|
slice_z = lo + z_offset;
|
||||||
if (slice_z < lo || slice_z > hi) {
|
if ((slice_z < lo && !is_approx(slice_z, lo)) || (slice_z > hi && !is_approx(slice_z, hi))) {
|
||||||
throw RuntimeError("Bad min Z value");
|
throw RuntimeError("Bad min Z value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user