Refactor: move FCurve baking code to animrig #120984

Merged
Christoph Lendenfeld merged 4 commits from ChrisLend/blender:refactor_move_fcurve_bake into main 2024-04-30 12:22:57 +02:00
1 changed files with 6 additions and 2 deletions
Showing only changes of commit 8d19a7b48e - Show all commits

View File

@ -102,13 +102,17 @@ enum class BakeCurveRemove {
REMOVE_ALL = 3,
};
/** Creates keyframes in the given range at the given step interval.
/**
* Creates keyframes in the given range at the given step interval.
* \param range: start and end frame to bake. Is inclusive on both ends.
* \param remove_existing: choice which keys to remove in relation to the given range.
*/
void bake_fcurve(FCurve *fcu, blender::int2 range, float step, BakeCurveRemove remove_existing);
/* */
/**
* Fill the space between selected keyframes with keyframes on full frames.
* E.g. With a key selected on frame 1 and 3 it will insert a key on frame 2.
*/
void bake_fcurve_segments(FCurve *fcu);
} // namespace blender::animrig