diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-11-21 07:08:00 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-11-21 07:08:00 +0300 |
commit | b276050a08a93ea61e4fe085278e8c1feff399d2 (patch) | |
tree | 75f6e0f13816e44e93eacb90e305b9b99df1611e /source/blender/src/edit.c | |
parent | b7e0da6c3a83bd5aa8d3ad4aa285904d5c121f91 (diff) |
== 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.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |