From d51fbd2bf2c29b170878d16c8a751c46d5f3afa7 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 10 Oct 2007 10:22:43 +0000 Subject: [PATCH] Bugfix for Auto-Keying: (blenderartists.org report) When auto-keyframing AND 'around selected' were both activated, extra keyframes were being added when the view was moved. This was because the transform code was being used for special center calculations (using TFM_DUMMY), so auto-keying is not skipped for that mode. --- source/blender/src/transform_conversions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/src/transform_conversions.c b/source/blender/src/transform_conversions.c index 414759c8505..9520aa7b976 100644 --- a/source/blender/src/transform_conversions.c +++ b/source/blender/src/transform_conversions.c @@ -2824,8 +2824,8 @@ void special_aftertrans_update(TransInfo *t) if(t->mode==TFM_TRANSLATION) pose_grab_with_ik_clear(ob); - /* automatic inserting of keys and unkeyed tagging - only if transform wasn't cancelled */ - if(!cancelled) { + /* automatic inserting of keys and unkeyed tagging - only if transform wasn't cancelled (or TFM_DUMMY) */ + if(!cancelled && (t->mode != TFM_DUMMY)) { autokeyframe_pose_cb_func(ob, t->mode, targetless_ik); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); } @@ -2848,11 +2848,11 @@ void special_aftertrans_update(TransInfo *t) if(base->flag & BA_DO_IPO) redrawipo= 1; ob= base->object; - + if(modifiers_isSoftbodyEnabled(ob)) ob->softflag |= OB_SB_REDO; /* Set autokey if necessary */ - if ((!cancelled) && (base->flag & SELECT)){ + if ((!cancelled) && (t->mode != TFM_DUMMY) && (base->flag & SELECT)) { autokeyframe_ob_cb_func(ob, t->mode); }