Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-26 09:08:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-26 09:31:31 +0300
commitc47be43674f525c568f52afc900963875e742678 (patch)
tree3ae1bf27d07aebc0361fc2f167d2cad8ccef675e /source/blender/windowmanager/gizmo/wm_gizmo_fn.h
parentbb8023ff7f1a2b27dca92c8f8d147768b2206da0 (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_fn.h')
-rw-r--r--source/blender/windowmanager/gizmo/wm_gizmo_fn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/gizmo/wm_gizmo_fn.h b/source/blender/windowmanager/gizmo/wm_gizmo_fn.h
index 88065a0fcd5..3361932c6e3 100644
--- a/source/blender/windowmanager/gizmo/wm_gizmo_fn.h
+++ b/source/blender/windowmanager/gizmo/wm_gizmo_fn.h
@@ -39,6 +39,8 @@ typedef void (*wmGizmoGroupFnRefresh)(
const struct bContext *, struct wmGizmoGroup *);
typedef void (*wmGizmoGroupFnDrawPrepare)(
const struct bContext *, struct wmGizmoGroup *);
+typedef void (*wmGizmoGroupFnInvokePrepare)(
+ const struct bContext *, struct wmGizmoGroup *, struct wmGizmo *);
typedef struct wmKeyMap *(*wmGizmoGroupFnSetupKeymap)(
const struct wmGizmoGroupType *, struct wmKeyConfig *)
ATTR_WARN_UNUSED_RESULT;