From 9dcc63b76cc060cb47f0c728e8a64eda49cf531a Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Thu, 13 Jun 2024 13:17:32 +0200 Subject: [PATCH] Fix #122372: Keyingsets not keying custom properties of type EnumProperty The issue was that when applying the keyingsets `Whole Character` and `LocRotScale & Custom Properties` the enum property of a rigify rig was not keyed. The reason it was not keyed was just because it was not specified in the compatible types in the keying set. The fix is to just add `bpy.types.EnumProperty` to the list. Pull Request: https://projects.blender.org/blender/blender/pulls/122377 --- scripts/modules/keyingsets_utils.py | 3 ++- scripts/startup/keyingsets_builtins.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/modules/keyingsets_utils.py b/scripts/modules/keyingsets_utils.py index baaddfa15bf..30961141812 100644 --- a/scripts/modules/keyingsets_utils.py +++ b/scripts/modules/keyingsets_utils.py @@ -212,7 +212,8 @@ def RKS_GEN_custom_props(_ksi, _context, ks, data): # Only some RNA types can be animated. prop_type_compat = {bpy.types.BoolProperty, bpy.types.IntProperty, - bpy.types.FloatProperty} + bpy.types.FloatProperty, + bpy.types.EnumProperty} # When working with a pose, 'id_block' is the armature object (which should # get the animation data), whereas 'data' is the bone being keyed. diff --git a/scripts/startup/keyingsets_builtins.py b/scripts/startup/keyingsets_builtins.py index 99645fc2924..05b6d361155 100644 --- a/scripts/startup/keyingsets_builtins.py +++ b/scripts/startup/keyingsets_builtins.py @@ -505,6 +505,7 @@ class WholeCharacterMixin: bpy.types.BoolProperty, bpy.types.IntProperty, bpy.types.FloatProperty, + bpy.types.EnumProperty, } # go over all custom properties for bone