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/windowmanager/gizmo/wm_gizmo_fn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/gizmo') diff --git a/source/blender/windowmanager/gizmo/wm_gizmo_fn.h b/source/blender/windowmanager/gizmo/wm_gizmo_fn.h index 84e6308223f..ac4f6b761ac 100644 --- a/source/blender/windowmanager/gizmo/wm_gizmo_fn.h +++ b/source/blender/windowmanager/gizmo/wm_gizmo_fn.h @@ -62,9 +62,9 @@ typedef void (*wmGizmoFnMatrixBasisGet)(const struct wmGizmo *, float[4][4]); typedef int (*wmGizmoFnInvoke)(struct bContext *, struct wmGizmo *, const struct wmEvent *); typedef void (*wmGizmoFnExit)(struct bContext *, struct wmGizmo *, const bool); typedef int (*wmGizmoFnCursorGet)(struct wmGizmo *); -typedef void (*wmGizmoFnScreenBoundsGet)(struct bContext *, +typedef bool (*wmGizmoFnScreenBoundsGet)(struct bContext *, struct wmGizmo *, - rcti *r_bounding_box); + rcti *r_bounding_box) ATTR_WARN_UNUSED_RESULT; typedef void (*wmGizmoFnSelectRefresh)(struct wmGizmo *); typedef void (*wmGizmoFnFree)(struct wmGizmo *); -- cgit v1.2.3