From 9175911ffabefcd00f15d847ffdf8afe5efadb10 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 19 Apr 2021 17:17:49 +1000 Subject: Fix spin-gizmo button tool-tip placement gizmo_button2d_bounds result wasn't valid when the gizmo was part of a 3D gizmo group. Regression in cf6d17a6aa421e0038fc1f8e60e3f1f708887c3e --- source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d') diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c index 4ac16e8fbe8..05ea35f114f 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c @@ -372,7 +372,7 @@ static int gizmo_axis_cursor_get(wmGizmo *UNUSED(gz)) return WM_CURSOR_DEFAULT; } -static void gizmo_axis_screen_bounds_get(bContext *C, wmGizmo *gz, rcti *r_bounding_box) +static bool gizmo_axis_screen_bounds_get(bContext *C, wmGizmo *gz, rcti *r_bounding_box) { ScrArea *area = CTX_wm_area(C); const float rad = WIDGET_RADIUS; @@ -380,6 +380,7 @@ static void gizmo_axis_screen_bounds_get(bContext *C, wmGizmo *gz, rcti *r_bound r_bounding_box->ymin = gz->matrix_basis[3][1] + area->totrct.ymin - rad; r_bounding_box->xmax = r_bounding_box->xmin + rad; r_bounding_box->ymax = r_bounding_box->ymin + rad; + return true; } void VIEW3D_GT_navigate_rotate(wmGizmoType *gzt) -- cgit v1.2.3