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/editors/include/ED_keyframes_edit.h | |
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/editors/include/ED_keyframes_edit.h')
-rw-r--r-- | source/blender/editors/include/ED_keyframes_edit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 8181cebfe3c..c347d75fa66 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -309,7 +309,7 @@ void clean_fcurve(struct bAnimContext *ac, struct bAnimListElem *ale, float thresh, bool cleardefault); -void decimate_fcurve(struct bAnimListElem *ale, float remove_ratio); +bool decimate_fcurve(struct bAnimListElem *ale, float remove_ratio, float error_sq_max); void smooth_fcurve(struct FCurve *fcu); void sample_fcurve(struct FCurve *fcu); |