diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-19 10:17:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-19 10:17:49 +0300 |
commit | 9175911ffabefcd00f15d847ffdf8afe5efadb10 (patch) | |
tree | 3fb02af6d086fcdba0725010f93a20e8ae4486d9 /source/blender/editors/space_view3d | |
parent | 063c9938f1ecb52ddb697096918974485ef81da3 (diff) |
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
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |