FIX: fix reset not work for movement in cut tool

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
This commit is contained in:
yifan.wu 2022-08-07 23:22:37 +08:00 committed by Yifan Wu
parent 2193ac792e
commit a9e3bb59a0

View file

@ -154,11 +154,14 @@ void GLGizmoAdvancedCut::reset_cut_plane()
m_cut_plane_points[3] = { min_x, max_y, 0 }; m_cut_plane_points[3] = { min_x, max_y, 0 };
m_movement = 0.0; m_movement = 0.0;
m_height = box.size()[2] / 2.0; m_height = box.size()[2] / 2.0;
m_buffered_height = m_height;
m_height_delta = 0; m_height_delta = 0;
m_rotation.setZero(); m_rotation.setZero();
//m_current_base_rotation.setZero(); //m_current_base_rotation.setZero();
m_rotate_cmds.clear(); m_rotate_cmds.clear();
m_buffered_movement = 0.0;
m_buffered_height = m_height;
m_buffered_rotation.setZero();
} }
void GLGizmoAdvancedCut::reset_all() void GLGizmoAdvancedCut::reset_all()