mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 08:08:25 +00:00
parent
6cb1a4a48b
commit
577831bf1a
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ class Planner {
|
|||
*/
|
||||
static float fade_scaling_factor_for_z(const_float_t rz) {
|
||||
static float z_fade_factor = 1;
|
||||
if (!z_fade_height) return 1;
|
||||
if (!z_fade_height || rz <= 0) return 1;
|
||||
if (rz >= z_fade_height) return 0;
|
||||
if (last_fade_z != rz) {
|
||||
last_fade_z = rz;
|
||||
|
|
Loading…
Reference in a new issue