Fix: use ENUM_OPERATORS macro correctly for eInsertKeyFlags enum

We were passing a sentinel maximum enum value to `ENUM_OPERATOR`,  which
is incorrect.  In particular, this caused the bitwise-not operator to
work incorrectly and produce invalid values.

Pull Request: https://projects.blender.org/blender/blender/pulls/122711
This commit is contained in:
Nathan Vegdahl 2024-06-04 14:08:06 +02:00 committed by Nathan Vegdahl
parent aaae9b956a
commit 76f4a4da6a

@ -1064,10 +1064,8 @@ typedef enum eInsertKeyFlags {
INSERTKEY_CYCLE_AWARE = (1 << 9),
/** don't create new F-Curves (implied by INSERTKEY_REPLACE) */
INSERTKEY_AVAILABLE = (1 << 10),
/* Keep last. */
INSERTKEY_MAX,
} eInsertKeyFlags;
ENUM_OPERATORS(eInsertKeyFlags, INSERTKEY_MAX);
ENUM_OPERATORS(eInsertKeyFlags, INSERTKEY_AVAILABLE);
/* ************************************************ */
/* Animation Data */