diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-09-27 10:29:52 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-09-27 10:29:52 +0400 |
commit | 50faaccf2e5cfe90cc26f440d9bd2c6361c5d429 (patch) | |
tree | 48f6f2596c7d4cfe1c476806554afcb0100c0cf6 /source/blender/include | |
parent | 049b88f0d23902fae3743b2d8f7a61098ac93152 (diff) |
Auto-Keyframing (per scene):
Now auto-keyframing can be enabled/disabled per scene (with the insertion mode also stored per scene). The flags used when insertng keyframes are still stored in the user-prefs.
New scenes have their auto-keyframing settings initialised from the user-preferences.
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BIF_keyframing.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/include/BIF_keyframing.h b/source/blender/include/BIF_keyframing.h index eeaef957b90..7989e6adb45 100644 --- a/source/blender/include/BIF_keyframing.h +++ b/source/blender/include/BIF_keyframing.h @@ -80,6 +80,24 @@ short deletekey(struct ID *id, int blocktype, char *actname, char *constname, in void common_insertkey(void); void common_deletekey(void); +/* ************ Auto-Keyframing ********************** */ +/* Notes: + * - All the defines for this (User-Pref settings and Per-Scene settings) + * are defined in DNA_userdef_types.h + * - Scene settings take presidence over those for userprefs, with old files + * inheriting userpref settings for the scene settings + * - "On/Off + Mode" are stored per Scene, but "settings" are currently stored + * as userprefs + */ + +/* Auto-Keying macros for use by various tools */ + /* check if auto-keyframing is enabled (per scene takes presidence) */ +#define IS_AUTOKEY_ON ((G.scene) ? (G.scene->autokey_mode & AUTOKEY_ON) : (U.autokey_mode & AUTOKEY_ON)) + /* check the mode for auto-keyframing (per scene takes presidence) */ +#define IS_AUTOKEY_MODE(mode) ((G.scene) ? (G.scene->autokey_mode == AUTOKEY_MODE_##mode) : (U.autokey_mode == AUTOKEY_MODE_##mode)) + /* check if a flag is set for auto-keyframing (as userprefs only!) */ +#define IS_AUTOKEY_FLAG(flag) (U.autokey_flag & AUTOKEY_FLAG_##flag) + /* ************ Keyframe Checking ******************** */ /* Checks whether a keyframe exists for the given ID-block one the given frame */ |