FIX:not TakeSnapshot for m_start_dragging_m

Jira: STUDIO-5176

Change-Id: Ia03e3e2c2664dbdcffa19ec8d0fa97dfd95e6d35
This commit is contained in:
zhou.xu 2023-11-08 17:47:43 +08:00 committed by Lane.Wei
parent 7d33cb0ff1
commit 4adae5e595
1 changed files with 1 additions and 0 deletions

View File

@ -590,6 +590,7 @@ void GLGizmoAdvancedCut::on_stop_dragging()
m_is_dragging = false;
if (m_hover_id == X || m_hover_id == Y || m_hover_id == Z) {
Plater::TakeSnapshot snapshot(wxGetApp().plater(), "Rotate cut plane");
m_start_dragging_m = m_rotate_matrix; // for takeshot
} else if (m_hover_id == c_cube_z_move_id || m_hover_id == c_cube_x_move_id || m_hover_id == c_plate_move_id) {
Plater::TakeSnapshot snapshot(wxGetApp().plater(), "Move cut plane"); // todo
m_ar_plane_center = m_plane_center;