diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-01-10 04:36:22 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-01-10 04:36:22 +0300 |
commit | 38a33eb7da8211c16fa63f73aa3d4a3e5d7773c3 (patch) | |
tree | c02ba2f994b734e06b8e590d188e3e25acbfb7d6 /source/blender/blenkernel/BKE_global.h | |
parent | 5b0b214407bd79d499eb79c46e5277578ba1ced0 (diff) |
== Auto-Keyframing Refactor (Peach Request) ==
Refactored Auto-Keyframing to make it easier to add more options. There are now three "states" for auto-keying: off, add/replace keys, replace keys.
Description of modes:
1) No auto-keying is done
2) Add new keyframes or replace existing ones if possible (old behaviour)
3) Only modify existing keys, but not insert new ones.
Internally, I've moved the auto-keying settings out of G.flag and U.uiflag and moved them into their own variables in Userdef, and provided some macros to access those easily. As a result, old auto-keying settings are currently lost.
Also, removed the manual calls to insertkey done in pose-relax. The reason auto-keying didn't work before was because the bones didn't have the BONE_TRANSFORM flag applied. Now, these are set temporarily.
Todo(s):
* Make icons for the TimeLine header menu (currently just a text menu)
* Add version-patches for old files
* Double-check code for all places that use auto-keying (i.e. PoseLib)
Diffstat (limited to 'source/blender/blenkernel/BKE_global.h')
-rw-r--r-- | source/blender/blenkernel/BKE_global.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index e71145e8d79..8aaa9e42289 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -180,7 +180,7 @@ typedef struct Global { #define G_DRAW_FACEAREA (1 << 23) #define G_DRAW_EDGEANG (1 << 24) -#define G_RECORDKEYS (1 << 25) +/* #define G_RECORDKEYS (1 << 25) also removed */ /*#ifdef WITH_VERSE*/ #define G_VERSE_CONNECTED (1 << 26) #define G_DRAW_VERSE_DEBUG (1 << 27) @@ -189,7 +189,7 @@ typedef struct Global { #define G_SCULPTMODE (1 << 29) #define G_PARTICLEEDIT (1 << 30) -#define G_AUTOMATKEYS (1 << 30) +/* #define G_AUTOMATKEYS (1 << 30) also removed */ #define G_HIDDENHANDLES (1 << 31) /* used for curves only */ /* macro for testing face select mode |