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/include/transform.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/include/transform.h')
-rw-r--r-- | source/blender/include/transform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h index 58cbd5c8755..d52de12ed17 100644 --- a/source/blender/include/transform.h +++ b/source/blender/include/transform.h @@ -382,6 +382,7 @@ void special_aftertrans_update(TransInfo *t); void transform_autoik_update(TransInfo *t, short mode); /* auto-keying stuff used by special_aftertrans_update */ +short autokeyframe_cfra_can_key(struct Object *ob); void autokeyframe_ob_cb_func(struct Object *ob, int tmode); void autokeyframe_pose_cb_func(struct Object *ob, int tmode, short targetless_ik); |