diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 18:00:03 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 18:02:58 +0300 |
commit | 7868db9343d577784aa754418f2b888793a01d25 (patch) | |
tree | 56b4cb1d1ef6f813cc1881d50d2e26e89a8912ca /source/blender/blenkernel | |
parent | 824c2659382b2c76c3e6ec53ca598647af104446 (diff) |
Make curve decimation only take into account the selected curve points
Previously the decimation would take the whole curve into account when
decimating and not just the selected part.
This also contains various smaller bug fixes for the fcurve decimation.
Reviewed By: Sybren
Differential Revision: http://developer.blender.org/D6286
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/curve_decimate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve_decimate.c b/source/blender/blenkernel/intern/curve_decimate.c index cccdf830854..d569684d55c 100644 --- a/source/blender/blenkernel/intern/curve_decimate.c +++ b/source/blender/blenkernel/intern/curve_decimate.c @@ -269,11 +269,11 @@ uint BKE_curve_decimate_bezt_array(BezTriple *bezt_array, if (a == HD_VECT) { \ a = HD_FREE; \ } \ - else if (a == HD_AUTO) { \ + else if (a == HD_AUTO || a == HD_AUTO_ANIM) { \ a = HD_ALIGN; \ } \ /* opposite handle */ \ - if (b == HD_AUTO) { \ + if (b == HD_AUTO || b == HD_AUTO_ANIM) { \ b = HD_ALIGN; \ } \ } \ |