Skip to content
Snippets Groups Projects
Commit 6f7d7c35 authored by Alexander Gavrilov's avatar Alexander Gavrilov
Browse files

Fix T69313: rigify crashes on custom properties without UI metadata.

Patch suggested by @pioverfour.
parent fb23ec0c
No related branches found
No related tags found
No related merge requests found
......@@ -198,8 +198,9 @@ def copy_bone(obj, bone_name, assign_name=''):
and key != "rigify_parameters" \
and key != "rigify_type":
prop1 = rna_idprop_ui_prop_get(pose_bone_1, key, create=False)
prop2 = rna_idprop_ui_prop_get(pose_bone_2, key, create=True)
pose_bone_2[key] = pose_bone_1[key]
if prop1 is not None:
prop2 = rna_idprop_ui_prop_get(pose_bone_2, key, create=True)
for key in prop1.keys():
prop2[key] = prop1[key]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment