diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-04 17:12:19 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-04 17:12:19 +0400 |
commit | 1d260d84adf4dcabc9a3533030e926b26faba149 (patch) | |
tree | 139eae0b41a157e5f5a5721ab68179cf29b95303 /source/blender/editors | |
parent | 5f99f8bee7825d2a49b286f9fbaf3db3d60a6391 (diff) |
Fix T38411: Free keyframe handles do not snap to frames when duplicating
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 204f8a08ee3..cedbc4658b6 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -3802,7 +3802,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t) const char sel1 = use_handle ? bezt->f1 & SELECT : sel2; const char sel3 = use_handle ? bezt->f3 & SELECT : sel2; - if (ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE)) { + if (ELEM4(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE, TFM_TIME_DUPLICATE)) { /* for 'normal' pivots - just include anything that is selected. * this works a bit differently in translation modes */ if (sel2) { @@ -3910,7 +3910,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t) /* only include handles if selected, irrespective of the interpolation modes. * also, only treat handles specially if the center point isn't selected. */ - if (!ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE) || !(sel2)) { + if (!ELEM4(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE, TFM_TIME_DUPLICATE) || !(sel2)) { if (sel1) { hdata = initTransDataCurveHandles(td, bezt); bezt_to_transdata(td++, td2d++, adt, bezt, 0, 1, 1, intvals, scaled_mtx, scaled_smtx); @@ -3933,7 +3933,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t) if (sel2 && (use_local_center == false)) { /* move handles relative to center */ - if (ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE)) { + if (ELEM4(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE, TFM_TIME_DUPLICATE)) { if (sel1) td->flag |= TD_MOVEHANDLE1; if (sel3) td->flag |= TD_MOVEHANDLE2; } |