Refactor: move FCurve baking code to animrig #120984
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue