From 7b0f49f1832c355c83bc2f1a2a6824c976ea1cd4 Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Thu, 23 May 2024 11:20:45 +0200 Subject: [PATCH] Fix: Whole character keying set error on unresolved paths The "Whole Character" keying set might fail to insert keys when a property cannot be resolved. This occurred on the Ellie rig from the Blender Studio. The failing property was called "bone gizmo". The fix is to check if `rna_property` exists. Pull Request: https://projects.blender.org/blender/blender/pulls/122038 --- scripts/startup/keyingsets_builtins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/startup/keyingsets_builtins.py b/scripts/startup/keyingsets_builtins.py index fae3cd49563..99645fc2924 100644 --- a/scripts/startup/keyingsets_builtins.py +++ b/scripts/startup/keyingsets_builtins.py @@ -519,6 +519,9 @@ class WholeCharacterMixin: # This happens when a custom property is set to None. In that case it cannot # be converted to an FCurve-compatible value, so we can't keyframe it anyway. continue + if not rna_property: + # Failure to resolve property. + continue if rna_property.rna_type in prop_type_compat: self.addProp(ks, bone, prop_path) elif prop_rna.is_animatable: