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/windowmanager | |
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/windowmanager')
-rw-r--r-- | source/blender/windowmanager/gizmo/wm_gizmo_fn.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 *); |