Browse Source

Remove abs() from planeNormal.z

pull/1/head
Scott Lahteine 10 years ago
parent
commit
0b32431551
  1. 2
      Marlin/Marlin_main.cpp

2
Marlin/Marlin_main.cpp

@ -1114,7 +1114,7 @@ static void set_bed_level_equation_3pts(float z_at_pt_1, float z_at_pt_2, float
vector_3 from_2_to_1 = (pt1 - pt2).get_normal();
vector_3 from_2_to_3 = (pt3 - pt2).get_normal();
vector_3 planeNormal = vector_3::cross(from_2_to_1, from_2_to_3).get_normal();
planeNormal = vector_3(planeNormal.x, planeNormal.y, abs(planeNormal.z));
planeNormal = vector_3(planeNormal.x, planeNormal.y, planeNormal.z);
plan_bed_level_matrix = matrix_3x3::create_look_at(planeNormal);

Loading…
Cancel
Save