Revert "Fix spin-gizmo not allowing click events to select vertices"

This reverts commit 0b903755a9.

This caused T86030, left-mouse selection override clicking,
which is used for creating a full revolution.
This commit is contained in:
Campbell Barton 2021-08-03 16:06:42 +10:00
parent 6f50969406
commit 00b57136e4
Notes: blender-bot 2023-02-14 06:00:49 +01:00
Referenced by commit d6e97a53ab, Correct task ID in 00b57136e4
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #89912, The spin deselects vertices and displays a non-selection error
1 changed files with 3 additions and 1 deletions

View File

@ -468,7 +468,9 @@ void MESH_GGT_spin(struct wmGizmoGroupType *gzgt)
gzgt->poll = ED_gizmo_poll_or_unlink_delayed_from_tool;
gzgt->setup = gizmo_mesh_spin_init_setup;
gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_maybe_drag;
/* This works well with right click selection but overrides left-mouse selection
* when clicking which is needed to create a full 360 degree revolution, see: T86030. */
// gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_maybe_drag;
gzgt->refresh = gizmo_mesh_spin_init_refresh;
gzgt->message_subscribe = gizmo_mesh_spin_init_message_subscribe;
gzgt->draw_prepare = gizmo_mesh_spin_init_draw_prepare;