From b276050a08a93ea61e4fe085278e8c1feff399d2 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 21 Nov 2007 04:08:00 +0000 Subject: == Auto-Keyframing - 'Only Needed' Improvements == The 'Only Needed' option for Auto-Keyframing now works better with a few of the different transform options. Rotating/Scaling using a pivot point that is not the center of the Object/Bone (3d-cursor, active), also inserts location keyframes if the location also changes. If "Only Centers" option is activated, then only location keyframes are inserted. --- source/blender/src/edit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/src/edit.c') diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index 7d784dcecfd..f6b60a3d8fc 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -1221,7 +1221,7 @@ void snap_sel_to_grid() } ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK); - /* autokeyframing */ + /* auto-keyframing */ autokeyframe_pose_cb_func(ob, TFM_TRANSLATION, 0); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); } @@ -1231,10 +1231,10 @@ void snap_sel_to_grid() vec[0]= -ob->obmat[3][0]+G.vd->gridview*floor(.5+ ob->obmat[3][0]/gridf); vec[1]= -ob->obmat[3][1]+G.vd->gridview*floor(.5+ ob->obmat[3][1]/gridf); vec[2]= -ob->obmat[3][2]+G.vd->gridview*floor(.5+ ob->obmat[3][2]/gridf); - + if(ob->parent) { where_is_object(ob); - + Mat3Inv(imat, originmat); Mat3MulVecfl(imat, vec); ob->loc[0]+= vec[0]; @@ -1334,7 +1334,7 @@ void snap_sel_to_curs() } ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK); - /* autokeyframing */ + /* auto-keyframing */ autokeyframe_pose_cb_func(ob, TFM_TRANSLATION, 0); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); } @@ -1686,7 +1686,7 @@ void snap_to_center() } } - /* autokeyframing */ + /* auto-keyframing */ ob->pose->flag |= POSE_DO_UNLOCK; autokeyframe_pose_cb_func(ob, TFM_TRANSLATION, 0); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); -- cgit v1.2.3