Anim: include "Only Key Available" in derived auto-keying flags

The flag for "Only Key Available" was weirdly omitted from the flags
returned by `get_autokey_flags()`, always being set to false. This
happens to be okay at the places the function is currently used, but
it is unexpected and a likely footgun for future changes to the code
that uses it.
This commit is contained in:
Nathan Vegdahl 2024-05-06 13:49:21 +02:00 • committed by Nathan Vegdahl
parent 5508b41a40
commit 44d020771d

View file

@ -43,6 +43,11 @@ static eInsertKeyFlags get_autokey_flags(Scene *scene)
flag |= INSERTKEY_NEEDED;
}
/* Only insert available. */
if (is_keying_flag(scene, AUTOKEY_FLAG_INSERTAVAILABLE)) {
flag |= INSERTKEY_AVAILABLE;
}
/* Keyframing mode - only replace existing keyframes. */
if (is_autokey_mode(scene, AUTOKEY_MODE_EDITKEYS)) {
flag |= INSERTKEY_REPLACE;