From 9f05144fc922909c84ed712bb162b0db401228f8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 19 Dec 2023 10:19:20 +1100 Subject: [PATCH] Cleanup: specify defines for enum values stored in blend-files --- source/blender/editors/include/ED_keyframes_edit.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/include/ED_keyframes_edit.hh b/source/blender/editors/include/ED_keyframes_edit.hh index c623ae31cbf..a02f6edb88e 100644 --- a/source/blender/editors/include/ED_keyframes_edit.hh +++ b/source/blender/editors/include/ED_keyframes_edit.hh @@ -500,7 +500,12 @@ void bake_fcurve_segments(FCurve *fcu); void sample_fcurve_segment( FCurve *fcu, float start_frame, float sample_rate, float *r_samples, int sample_count); -enum class BakeCurveRemove { REMOVE_NONE, REMOVE_IN_RANGE, REMOVE_OUT_RANGE, REMOVE_ALL }; +enum class BakeCurveRemove { + REMOVE_NONE = 0, + REMOVE_IN_RANGE = 1, + REMOVE_OUT_RANGE = 2, + REMOVE_ALL = 3, +}; /** 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.