mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
5508b41a40
commit
44d020771d
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue