diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-02-05 14:59:32 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-02-05 16:40:43 +0300 |
commit | c105c59bb4e00d88c688f63c699dc78c0be4592a (patch) | |
tree | 0a9392cc8a12d72710e6a8919538a923eb1c449e /source/blender/editors/transform | |
parent | c53c8df6d9e3d2093baf9aa69e350b9cba530e48 (diff) |
Fix T46037: Moving keys in NLA tweak mode on offset actions results in Bezier handles getting stretched unreasonably
Patch by Alexander Gavrilov (angavrilov)
Reviewed by Joshua Leung (aligorith)
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index df0edae9a56..ab0db79d460 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -3390,9 +3390,9 @@ static void posttrans_action_clean(bAnimContext *ac, bAction *act) AnimData *adt = ANIM_nla_mapping_get(ac, ale); if (adt) { - ANIM_nla_mapping_apply_fcurve(adt, ale->key_data, 0, 1); + ANIM_nla_mapping_apply_fcurve(adt, ale->key_data, 0, 0); posttrans_fcurve_clean(ale->key_data, false); /* only use handles in graph editor */ - ANIM_nla_mapping_apply_fcurve(adt, ale->key_data, 1, 1); + ANIM_nla_mapping_apply_fcurve(adt, ale->key_data, 1, 0); } else posttrans_fcurve_clean(ale->key_data, false); /* only use handles in graph editor */ @@ -6039,9 +6039,9 @@ void special_aftertrans_update(bContext *C, TransInfo *t) ((canceled == 0) || (duplicate)) ) { if (adt) { - ANIM_nla_mapping_apply_fcurve(adt, fcu, 0, 1); + ANIM_nla_mapping_apply_fcurve(adt, fcu, 0, 0); posttrans_fcurve_clean(fcu, false); /* only use handles in graph editor */ - ANIM_nla_mapping_apply_fcurve(adt, fcu, 1, 1); + ANIM_nla_mapping_apply_fcurve(adt, fcu, 1, 0); } else posttrans_fcurve_clean(fcu, false); /* only use handles in graph editor */ |