Fix #99157: Allow Shortcut on Auto Keyframe

If toggling the status of the Auto Keyframe button with a custom
keyboard shortcut it does not update and display the current status of
the button - it looks like nothing has changed.  This PR just updates
the button correctly when used this way. Just the addition of a
RNA_def_property_update.

Pull Request: https://projects.blender.org/blender/blender/pulls/131406
This commit is contained in:
Harley Acheson
2024-12-05 17:27:18 +01:00
committed by Harley Acheson
parent 0ce1aa9ecd
commit 0e1313483a

View File

@@ -4008,6 +4008,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Auto Keying", "Automatic keyframe insertion for objects, bones and masks");
RNA_def_property_ui_icon(prop, ICON_RECORD_OFF, 1);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TIME, nullptr);
prop = RNA_def_property(srna, "auto_keying_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, nullptr, "autokey_mode");