[Bf-extensions-cvs] [19a666fb] master: Rigify: make sure not to copy certain properties in copy_custom_properties.
Alexander Gavrilov
noreply at git.blender.org
Wed Jul 15 10:37:28 CEST 2020
Commit: 19a666fb7f097ee8963223775d15da297f20e7fb
Author: Alexander Gavrilov
Date: Wed Jul 15 11:27:34 2020 +0300
Branches: master
https://developer.blender.org/rBA19a666fb7f097ee8963223775d15da297f20e7fb
Rigify: make sure not to copy certain properties in copy_custom_properties.
===================================================================
M rigify/utils/mechanism.py
===================================================================
diff --git a/rigify/utils/mechanism.py b/rigify/utils/mechanism.py
index 3e7b2990..232fb7af 100644
--- a/rigify/utils/mechanism.py
+++ b/rigify/utils/mechanism.py
@@ -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
More information about the Bf-extensions-cvs
mailing list