diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-28 03:04:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-28 04:27:11 +0300 |
commit | 83d92f55b81f3d2b6b20c2c39a140df30caef5e4 (patch) | |
tree | dcd6acc52c27f28c97dada6a9119b30435ba42c8 /source/blender/windowmanager/gizmo/WM_gizmo_api.h | |
parent | 651e574153ac7295c0061f1518000cc3b1b8b4ca (diff) |
Fix error for tools that share gizmo types doubling up gizmos
Introduced in recent commit c93af8529dfec
Diffstat (limited to 'source/blender/windowmanager/gizmo/WM_gizmo_api.h')
-rw-r--r-- | source/blender/windowmanager/gizmo/WM_gizmo_api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index 5025291a746..293b0cd91dc 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -34,6 +34,7 @@ struct GHashIterator; struct IDProperty; struct Main; struct PropertyRNA; +struct bToolRef; struct wmGizmo; struct wmGizmoGroup; struct wmGizmoGroupType; @@ -364,5 +365,9 @@ void WM_gizmo_group_type_reinit(struct Main *bmain, const char *idname); bool WM_gizmo_context_check_drawstep(const struct bContext *C, eWM_GizmoFlagMapDrawStep step); bool WM_gizmo_group_type_poll(const struct bContext *C, const struct wmGizmoGroupType *gzgt); +void WM_gizmo_group_remove_by_tool(struct bContext *C, + struct Main *bmain, + const struct wmGizmoGroupType *gzgt, + const struct bToolRef *tref); #endif /* __WM_GIZMO_API_H__ */ |