From edf376ce0d33d6157e9a1be94dfe6c8af15ae7df Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 12 Apr 2016 17:15:10 -0700 Subject: [PATCH] Fix: gcode_T using non-existent Z offset As noted by @snowzach in #3461 --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index d0cdf0a496..8fe7bc211c 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -6178,10 +6178,10 @@ inline void gcode_T(uint8_t tmp_extruder) { // Offset extruder, make sure to apply the bed level rotation matrix vector_3 tmp_offset_vec = vector_3(extruder_offset[X_AXIS][tmp_extruder], extruder_offset[Y_AXIS][tmp_extruder], - extruder_offset[Z_AXIS][tmp_extruder]), + 0), act_offset_vec = vector_3(extruder_offset[X_AXIS][active_extruder], extruder_offset[Y_AXIS][active_extruder], - extruder_offset[Z_AXIS][active_extruder]), + 0), offset_vec = tmp_offset_vec - act_offset_vec; offset_vec.apply_rotation(plan_bed_level_matrix.transpose(plan_bed_level_matrix)); current_position[X_AXIS] += offset_vec.x;