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:
Campbell Barton
2019-08-07 19:59:13 +10:00
parent 8f8e91987b
commit b560e15028
2 changed files with 0 additions and 7 deletions

View File

@@ -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);
}

View File

@@ -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);
}
{