From 9085b4a731fd5315eb97c00fc4bbf7c163698ebc Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Sat, 25 Dec 2021 13:40:53 +0100 Subject: Blend To Neighbor Implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds the blend to neighbor operator to the Graph editor. The operator acts like the blend to neighbor operator for a pose context, just working on keyframes. Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9374 Ref: D9374 --- source/blender/editors/include/ED_keyframes_edit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 8a7831db0ea..084da038604 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -389,6 +389,9 @@ void clean_fcurve(struct bAnimContext *ac, struct bAnimListElem *ale, float thresh, bool cleardefault); +void blend_to_neighbor_fcurve_segment(struct FCurve *fcu, + struct FCurveSegment *segment, + const float factor); bool decimate_fcurve(struct bAnimListElem *ale, float remove_ratio, float error_sq_max); /** * Use a weighted moving-means method to reduce intensity of fluctuations. -- cgit v1.2.3