Fix T68348: Hotkeys do nothing when over viewport gizmos
This was done intentionally so mouse press events tools didn't prevent gizmos receiving click events before `USE_GIZMO_MOUSE_PRIORITY_HACK` was added.
This commit is contained in:
@@ -179,9 +179,6 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmGizmoGroup *
|
||||
gz->ptr, "draw_options", ED_GIZMO_BUTTON_SHOW_OUTLINE | ED_GIZMO_BUTTON_SHOW_BACKDROP);
|
||||
}
|
||||
|
||||
/* Not needed, just match 3D view where it is needed. */
|
||||
WM_gizmo_set_flag(gz, WM_GIZMO_EVENT_HANDLE_ALL, true);
|
||||
|
||||
wmOperatorType *ot = WM_operatortype_find(info->opname, true);
|
||||
WM_gizmo_operator_set(gz, 0, ot, NULL);
|
||||
}
|
||||
|
||||
@@ -184,10 +184,6 @@ static void WIDGETGROUP_navigate_setup(const bContext *C, wmGizmoGroup *gzgroup)
|
||||
|
||||
wmOperatorType *ot = WM_operatortype_find(info->opname, true);
|
||||
WM_gizmo_operator_set(gz, 0, ot, NULL);
|
||||
|
||||
/* We only need this for rotation so click/drag events aren't stolen
|
||||
* by paint mode press events, however it's strange if only rotation has this behavior. */
|
||||
WM_gizmo_set_flag(gz, WM_GIZMO_EVENT_HANDLE_ALL, true);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user