Skip to content

Commit

Permalink
FIX: plate is exceptionally selected when openning scale tool
Browse files Browse the repository at this point in the history
Change-Id: If2cfd62ddb7252aeb51ebf81c8c50f1b7ef52fa1
Signed-off-by: yifan.wu <[email protected]>
  • Loading branch information
YifanWuBambu authored and lanewei120 committed Sep 2, 2022
1 parent b55d967 commit 531794d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/slic3r/GUI/Gizmos/GLGizmosManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,8 @@ void GLGizmosManager::update_on_off_state(const Vec2d& mouse_pos)
size_t idx = get_gizmo_idx_from_mouse(mouse_pos);
if (idx != Undefined && m_gizmos[idx]->is_activable() && m_hover == idx) {
activate_gizmo(m_current == idx ? Undefined : (EType)idx);
wxGetApp().obj_list()->select_object_item((EType)idx <= Rotate);
// BBS
wxGetApp().obj_list()->select_object_item((EType)idx <= Scale);
}
}

Expand Down

0 comments on commit 531794d

Please sign in to comment.