diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-07-15 11:27:34 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-07-15 11:27:44 +0300 |
commit | 19a666fb7f097ee8963223775d15da297f20e7fb (patch) | |
tree | 27e1ef2e4b966bc5044dd37d8fa2bc3ddbad974b | |
parent | e9ada0c8e31cf0f4329f8ecc90c4fb970cbf948b (diff) |
Rigify: make sure not to copy certain properties in copy_custom_properties.
-rw-r--r-- | rigify/utils/mechanism.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |