diff options
author | Christoph Lendenfeld <chris.lend@gmx.at> | 2022-03-18 22:07:16 +0300 |
---|---|---|
committer | Christoph Lendenfeld <chris.lend@gmx.at> | 2022-03-18 22:07:16 +0300 |
commit | 37b93b5df85c9e7acac989c86cf658bf8a0bc1e5 (patch) | |
tree | 46fd200a7d96537f0c97f2c4cdff0cefc713fcc9 /source/blender/editors/include/ED_keyframes_edit.h | |
parent | 63f9cb5a0b5930a67c6fa8db833293f21b57ff63 (diff) |
Animation: Blend To Default Implementation
Add a new operator to the Graph Editor that blends selected keyframes
to their default value.
The operator can be accessed from
Key>Slider Operators>Blend To Default Value
Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D9376
Ref: D9367
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, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 90e8dbad272..3a0bb9738ae 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -382,6 +382,7 @@ void delete_fcurve_key(struct FCurve *fcu, int index, bool do_recalc); bool delete_fcurve_keys(struct FCurve *fcu); void clear_fcurve_keys(struct FCurve *fcu); void duplicate_fcurve_keys(struct FCurve *fcu); +float get_default_rna_value(struct FCurve *fcu, struct PropertyRNA *prop, struct PointerRNA *ptr); typedef struct FCurveSegment { struct FCurveSegment *next, *prev; @@ -404,6 +405,7 @@ void blend_to_neighbor_fcurve_segment(struct FCurve *fcu, float factor); void breakdown_fcurve_segment(struct FCurve *fcu, struct FCurveSegment *segment, float factor); bool decimate_fcurve(struct bAnimListElem *ale, float remove_ratio, float error_sq_max); +void blend_to_default_fcurve(struct PointerRNA *id_ptr, struct FCurve *fcu, float factor); /** * Use a weighted moving-means method to reduce intensity of fluctuations. */ |