mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06:00
FIX: fix reset not work for movement in cut tool
Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
This commit is contained in:
parent
2193ac792e
commit
a9e3bb59a0
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue