diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-04-10 17:08:12 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-04-10 17:08:12 +0400 |
commit | 6593bbaca2ceb248426c55e14ceb21bb46553fd1 (patch) | |
tree | 9e778b12484bd6d03c349bcebae4219076c7d09a /source/blender/editors/include/ED_keyframing.h | |
parent | be8b7ead51a5efb5dbd762075ee52812465ba8d6 (diff) |
2.5 - Groundwork for Adding/Removing Drivers
Drivers can now be Added/Removed from buttons using the D/Alt-D hotkeys, and also through the menu. Driver settings (i.e. the target) are not set by default. To set those, go to the Graph Editor (see notes).
Notes:
* Buildsystem maintainers - I've added a new file "editors/animation/drivers.c"
* Widget colours for the driven-setting indications are needed
* To see the new drivers, go into Graph Editor -> "Drivers" mode. Currently, there's a little bug there which prevents editing of the new drivers.
Diffstat (limited to 'source/blender/editors/include/ED_keyframing.h')
-rw-r--r-- | source/blender/editors/include/ED_keyframing.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_keyframing.h b/source/blender/editors/include/ED_keyframing.h index 5e4e0d4a44d..98a44d3ef2b 100644 --- a/source/blender/editors/include/ED_keyframing.h +++ b/source/blender/editors/include/ED_keyframing.h @@ -95,10 +95,25 @@ void ANIM_OT_delete_keyframe_menu(struct wmOperatorType *ot); // xxx unimplement void ANIM_OT_delete_keyframe_old(struct wmOperatorType *ot); // xxx rename and keep? /* Keyframe managment operators for UI buttons. */ - void ANIM_OT_insert_keyframe_button(struct wmOperatorType *ot); void ANIM_OT_delete_keyframe_button(struct wmOperatorType *ot); +/* ************ Drivers ********************** */ + +/* Main Driver Management API calls: + * Add a new driver for the specified property on the given ID block + */ +short ANIM_add_driver (struct ID *id, const char rna_path[], int array_index, short flag); + +/* Main Driver Management API calls: + * Remove the driver for the specified property on the given ID block (if available) + */ +short ANIM_remove_driver (struct ID *id, const char rna_path[], int array_index, short flag); + +/* Driver management operators for UI buttons */ +void ANIM_OT_add_driver_button(struct wmOperatorType *ot); +void ANIM_OT_remove_driver_button(struct wmOperatorType *ot); + /* ************ Auto-Keyframing ********************** */ /* Notes: * - All the defines for this (User-Pref settings and Per-Scene settings) |