diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 07:28:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 07:30:46 +0300 |
commit | b8592b656b124c43a41a7264411d134e5f2bd654 (patch) | |
tree | e5f54c58c7ec771f77eda390f7b17375e741b0c1 /source/blender/windowmanager/gizmo/WM_gizmo_api.h | |
parent | f409c1ec9398309dcc34fb0c5f8c4b447c2c3210 (diff) |
Gizmo: Functions to re-initialize a group type
Partially re-initializing a gizmo is often more trouble then removing
and re-adding.
Diffstat (limited to 'source/blender/windowmanager/gizmo/WM_gizmo_api.h')
-rw-r--r-- | source/blender/windowmanager/gizmo/WM_gizmo_api.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index 4a01e33cae7..153840986ef 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -314,12 +314,12 @@ void WM_gizmo_group_type_add_ptr( struct wmGizmoGroupType *gzgt); void WM_gizmo_group_type_add(const char *idname); -void WM_gizmo_group_type_ensure_ptr_ex( +bool WM_gizmo_group_type_ensure_ptr_ex( struct wmGizmoGroupType *gzgt, struct wmGizmoMapType *gzmap_type); -void WM_gizmo_group_type_ensure_ptr( +bool WM_gizmo_group_type_ensure_ptr( struct wmGizmoGroupType *gzgt); -void WM_gizmo_group_type_ensure(const char *idname); +bool WM_gizmo_group_type_ensure(const char *idname); void WM_gizmo_group_type_remove_ptr_ex( struct Main *bmain, struct wmGizmoGroupType *gzgt, @@ -335,6 +335,14 @@ void WM_gizmo_group_type_unlink_delayed_ptr( struct wmGizmoGroupType *gzgt); void WM_gizmo_group_type_unlink_delayed(const char *idname); +/* Has the result of unlinking and linking (re-initializes gizmo's). */ +void WM_gizmo_group_type_reinit_ptr_ex( + struct Main *bmain, struct wmGizmoGroupType *gzgt, + struct wmGizmoMapType *gzmap_type); +void WM_gizmo_group_type_reinit_ptr( + struct Main *bmain, struct wmGizmoGroupType *gzgt); +void WM_gizmo_group_type_reinit(struct Main *bmain, const char *idname); + /* Utilities */ bool WM_gizmo_context_check_drawstep(const struct bContext *C, eWM_GizmoFlagMapDrawStep step); |