Rigify: make sure not to copy certain properties in copy_custom_properties.

This commit is contained in:
Alexander Gavrilov 2020-07-15 11:27:34 +03:00
parent e9ada0c8e3
commit 19a666fb7f
1 changed files with 2 additions and 1 deletions

View File

@ -351,9 +351,10 @@ def reactivate_custom_properties(obj):
def copy_custom_properties(src, dest, *, prefix='', dest_prefix='', link_driver=False):
"""Copy custom properties with filtering by prefix. Optionally link using drivers."""
res = []
exclude = {'_RNA_UI', 'rigify_parameters', 'rigify_type'}
for key, value in src.items():
if key.startswith(prefix):
if key.startswith(prefix) and key not in exclude:
new_key = dest_prefix + key[len(prefix):]
dest[new_key] = value