diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-26 09:08:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-26 09:31:31 +0300 |
commit | c47be43674f525c568f52afc900963875e742678 (patch) | |
tree | 3ae1bf27d07aebc0361fc2f167d2cad8ccef675e /source/blender/windowmanager/gizmo/WM_gizmo_types.h | |
parent | bb8023ff7f1a2b27dca92c8f8d147768b2206da0 (diff) |
Gizmo: add invoke_prepare callback
Allows gizmo groups to set values based on the gizmo about to be invoked.
Diffstat (limited to 'source/blender/windowmanager/gizmo/WM_gizmo_types.h')
-rw-r--r-- | source/blender/windowmanager/gizmo/WM_gizmo_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_types.h b/source/blender/windowmanager/gizmo/WM_gizmo_types.h index f67a0d05bee..dc3e77eb130 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_types.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_types.h @@ -372,6 +372,8 @@ typedef struct wmGizmoGroupType { wmGizmoGroupFnRefresh refresh; /* refresh data for drawing, called before each redraw */ wmGizmoGroupFnDrawPrepare draw_prepare; + /* Initialize data for before invoke. */ + wmGizmoGroupFnInvokePrepare invoke_prepare; /* Keymap init callback for this gizmo-group (optional), * will fall back to default tweak keymap when left NULL. */ |