We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cb1a4a commit 577831bCopy full SHA for 577831b
Marlin/src/module/planner.h
@@ -592,7 +592,7 @@ class Planner {
592
*/
593
static float fade_scaling_factor_for_z(const_float_t rz) {
594
static float z_fade_factor = 1;
595
- if (!z_fade_height) return 1;
+ if (!z_fade_height || rz <= 0) return 1;
596
if (rz >= z_fade_height) return 0;
597
if (last_fade_z != rz) {
598
last_fade_z = rz;
0 commit comments