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
This commit is contained in:
Christoph Lendenfeld 2024-06-13 13:17:32 +02:00 committed by Christoph Lendenfeld
parent f87d4e4e40
commit 9dcc63b76c
2 changed files with 3 additions and 1 deletions

@ -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.

@ -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