Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/rigify
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-08 20:12:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-08 20:12:45 +0300
commit448eeb681aa414257a75356d7e6c65e0672980d5 (patch)
tree7d2ceb38efd2527e694ea1756689f760cefab5a8 /rigify
parent419f290890104e47081525dcd2eb87bfa244e319 (diff)
Update for changes in the Python API using keyword only arguments
Diffstat (limited to 'rigify')
-rw-r--r--rigify/utils/mechanism.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rigify/utils/mechanism.py b/rigify/utils/mechanism.py
index 6335514b..bc4e06ea 100644
--- a/rigify/utils/mechanism.py
+++ b/rigify/utils/mechanism.py
@@ -401,7 +401,7 @@ def deactivate_custom_properties(obj, *, reset=True):
for key, value in obj.items():
valtype = type(value)
if valtype in {int, float}:
- info = rna_idprop_ui_prop_get(obj, key, False) or {}
+ info = rna_idprop_ui_prop_get(obj, key, create=False) or {}
obj[key] = valtype(info.get("default", 0))
@@ -435,7 +435,7 @@ def copy_custom_properties(src, dest, *, prefix='', dest_prefix='', link_driver=
dest[new_key] = value
if info:
- info2 = rna_idprop_ui_prop_get(dest, new_key, True)
+ info2 = rna_idprop_ui_prop_get(dest, new_key, create=True)
for ki, vi in info.items():
info2[ki] = vi