From 5383212a282834dfe95acd78fbe6d336ba6eee63 Mon Sep 17 00:00:00 2001 From: MagoKimbra Date: Wed, 7 Dec 2016 09:23:42 +0100 Subject: [PATCH] Fix Mesh without Fade Height --- Marlin/planner.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index 73bdb0cf0..1fcaabd88 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -563,7 +563,11 @@ void Planner::check_axes_activity() { #if ENABLED(MESH_BED_LEVELING) if (mbl.active()) - lz += mbl.get_z(RAW_X_POSITION(lx), RAW_Y_POSITION(ly), z_fade_factor); + lz += mbl.get_z(RAW_X_POSITION(lx), RAW_Y_POSITION(ly) + #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) + , z_fade_factor + #endif + ); #elif ABL_PLANAR