diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-26 08:58:03 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-26 08:58:03 +0300 |
commit | 07a4986be7a99d32ee2f4b9f353cfb56117110fe (patch) | |
tree | ee7b3a4ffb44a2b446a2d69baf185a25da538527 /source/blender/editors/transform | |
parent | a1ea4ba71718705e602d0bebf7a15f88501c4920 (diff) |
WIP commit - degree conversions for transform fcurve editing - grabbing a point works fine, but still
issues with grabbing a single handle.
Using the Radians unit setting still goes fine though so you can use that for now.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 378ee85757f..a92af31211d 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -3495,6 +3495,8 @@ static void createTransGraphEditData(bContext *C, TransInfo *t) if (fcu->bezt == NULL) continue; + ANIM_unit_mapping_apply_fcurve(ac.scene, ale->id, ale->key_data, 0, 0); + /* only include BezTriples whose 'keyframe' occurs on the same side of the current frame as mouse (if applicable) */ for (i=0, bezt= fcu->bezt; i < fcu->totvert; i++, bezt++) { if (FrameOnMouseSide(side, bezt->vec[1][0], cfra)) { diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 3a6f30244ec..1e3bddc769e 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -408,17 +408,21 @@ void recalcData(TransInfo *t) for (ale= anim_data.first; ale; ale= ale->next) { FCurve *fcu= (FCurve *)ale->key_data; + ANIM_unit_mapping_apply_fcurve(ac.scene, ale->id, ale->key_data, 1, 0); + + /* watch it: if the time is wrong: do not correct handles yet */ if (test_time_fcurve(fcu)) dosort++; else calchandles_fcurve(fcu); - + /* set refresh tags for objects using this animation, * BUT only if realtime updates are enabled */ if ((sipo->flag & SIPO_NOREALTIMEUPDATES) == 0) ANIM_list_elem_update(t->scene, ale); + } /* do resort and other updates? */ |