diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-17 13:58:40 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-17 13:58:40 +0300 |
commit | ba3cacc33f392297ec8658535aaa82d2ac34dc35 (patch) | |
tree | 0c6718be719b702ba4a041ddc5b55433ef4a6abb /source/blender/editors/transform/transform_conversions.c | |
parent | 6eae888d496de6f05764138dc0e47eec1e24258d (diff) |
Visual Keyframing - Restored code to make this work, but it may still be flaky
NOTE: upon further testing, quick-record-animation feature does not work with auto-ik yet. Although it would be desireable to have, it is not a priority at this point, since adding that would require a bit of reworking of that code for something it wasn't intended for.
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 3df76c1e4c4..bf059f7b9be 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -4212,10 +4212,15 @@ void autokeyframe_pose_cb_func(Scene *scene, View3D *v3d, Object *ob, int tmode, short flag= 0; char buf[512]; + /* flag is initialised from UserPref keyframing settings + * - special exception for targetless IK - INSERTKEY_MATRIX keyframes should get + * visual keyframes even if flag not set, as it's not that useful otherwise + * (for quick animation recording) + */ + if (IS_AUTOKEY_FLAG(AUTOMATKEY) || (targetless_ik)) + flag |= INSERTKEY_MATRIX; if (IS_AUTOKEY_FLAG(INSERTNEEDED)) flag |= INSERTKEY_NEEDED; - if (IS_AUTOKEY_FLAG(AUTOMATKEY)) - flag |= INSERTKEY_MATRIX; for (pchan=pose->chanbase.first; pchan; pchan=pchan->next) { if (pchan->bone->flag & BONE_TRANSFORM) { |