Breakdown Implementation

This patch adds the breakdown (or tween) functionality to the graph editor.

The factor defines the linear interpolation from left key to right key.

Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D9375
Ref: D9375
This commit is contained in:
Christoph Lendenfeld
2021-12-25 20:58:47 +01:00
parent fbd01624e3
commit f7ddb1ed8a
6 changed files with 142 additions and 1 deletions

View File

@@ -392,6 +392,9 @@ void clean_fcurve(struct bAnimContext *ac,
void blend_to_neighbor_fcurve_segment(struct FCurve *fcu,
struct FCurveSegment *segment,
const float factor);
void breakdown_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.