Quellcode durchsuchen

Merge pull request #7430 from thinkyhead/bf1_fix_dualx

Followup cleanup patch
Scott Lahteine vor 7 Jahren
Ursprung
Commit
43d298a324
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      Marlin/ubl_motion.cpp

+ 1
- 1
Marlin/ubl_motion.cpp Datei anzeigen

@@ -186,7 +186,7 @@
186 186
       // are going to apply the Y-Distance into the cell to interpolate the final Z correction.
187 187
 
188 188
       const float yratio = (RAW_Y_POSITION(end[Y_AXIS]) - mesh_index_to_ypos(cell_dest_yi)) * (1.0 / (MESH_Y_DIST));
189
-      float z0 = cell_dest_yi < GRID_MAX_POINTS_Y - 1 ? z1 + (z2 - z1) * yratio * fade_scaling_factor_for_z(end[Z_AXIS]) : 0.0;
189
+      float z0 = cell_dest_yi < GRID_MAX_POINTS_Y - 1 ? (z1 + (z2 - z1) * yratio) * fade_scaling_factor_for_z(end[Z_AXIS]) : 0.0;
190 190
 
191 191
       /**
192 192
        * If part of the Mesh is undefined, it will show up as NAN

Laden…
Abbrechen
Speichern