diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-11-28 14:50:03 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-11-28 15:54:18 +0300 |
commit | c99d76773509516f1543190d422fb3be4c3021a4 (patch) | |
tree | 2fcf969757c00445e5ead14323802e127b7b6ec5 /source/blender/blenkernel/intern/fcurve.c | |
parent | b3f20eed6e85249d15724543743cb049e7991622 (diff) |
Fix some naming and comments in F-Curve smoothing code.
Diffstat (limited to 'source/blender/blenkernel/intern/fcurve.c')
-rw-r--r-- | source/blender/blenkernel/intern/fcurve.c | 9 |
1 files changed, 5 insertions, 4 deletions
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. */ |