From c99d76773509516f1543190d422fb3be4c3021a4 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 28 Nov 2020 14:50:03 +0300 Subject: Fix some naming and comments in F-Curve smoothing code. --- source/blender/blenkernel/intern/fcurve.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/intern/fcurve.c') diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c index bcd2fe098b7..ce710e2f7d4 100644 --- a/source/blender/blenkernel/intern/fcurve.c +++ b/source/blender/blenkernel/intern/fcurve.c @@ -1285,14 +1285,14 @@ void calchandles_fcurve_ex(FCurve *fcu, eBezTriple_Flag handle_sel_flag) if (fcu->extend == FCURVE_EXTRAPOLATE_CONSTANT) { bezt->vec[0][1] = bezt->vec[2][1] = bezt->vec[1][1]; /* Remember that these keyframes are special, they don't need to be adjusted. */ - bezt->f5 = HD_AUTOTYPE_SPECIAL; + bezt->auto_handle_type = HD_AUTOTYPE_LOCKED_FINAL; } } } /* Avoid total smoothing failure on duplicate keyframes (can happen during grab). */ if (prev && prev->vec[1][0] >= bezt->vec[1][0]) { - prev->f5 = bezt->f5 = HD_AUTOTYPE_SPECIAL; + prev->auto_handle_type = bezt->auto_handle_type = HD_AUTOTYPE_LOCKED_FINAL; } /* Advance pointers for next iteration. */ @@ -1309,10 +1309,11 @@ void calchandles_fcurve_ex(FCurve *fcu, eBezTriple_Flag handle_sel_flag) } /* If cyclic extrapolation and Auto Clamp has triggered, ensure it is symmetric. */ - if (cycle && (first->f5 != HD_AUTOTYPE_NORMAL || last->f5 != HD_AUTOTYPE_NORMAL)) { + if (cycle && (first->auto_handle_type != HD_AUTOTYPE_NORMAL || + last->auto_handle_type != HD_AUTOTYPE_NORMAL)) { first->vec[0][1] = first->vec[2][1] = first->vec[1][1]; last->vec[0][1] = last->vec[2][1] = last->vec[1][1]; - first->f5 = last->f5 = HD_AUTOTYPE_SPECIAL; + first->auto_handle_type = last->auto_handle_type = HD_AUTOTYPE_LOCKED_FINAL; } /* Do a second pass for auto handle: compute the handle to have 0 acceleration step. */ -- cgit v1.2.3