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
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2021-06-27 22:33:24 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2021-06-27 22:34:54 +0300
commit9fa75c889fb54651c83c73563397dd8c8c828443 (patch)
tree3663c0ed8fb1593752b02399a5bb1603dec54afb
parent7412d6c3e44bfda9df89e790fd0eb08cadc801b4 (diff)
Fix T89394: update for mandatory keyword argument in Python API.
The line was missed when updating in rBA448eeb681 after rBf29a738e2. Also remove an unneeded import.
-rw-r--r--rigify/utils/bones.py1
-rw-r--r--rigify/utils/mechanism.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/rigify/utils/bones.py b/rigify/utils/bones.py
index 8c00d4a7..4416a1d6 100644
--- a/rigify/utils/bones.py
+++ b/rigify/utils/bones.py
@@ -21,7 +21,6 @@
import bpy
import math
from mathutils import Vector, Matrix, Color
-from rna_prop_ui import rna_idprop_ui_prop_get
from .errors import MetarigError
from .naming import get_name, make_derived_name, is_control_bone
diff --git a/rigify/utils/mechanism.py b/rigify/utils/mechanism.py
index bc4e06ea..b4b2d389 100644
--- a/rigify/utils/mechanism.py
+++ b/rigify/utils/mechanism.py
@@ -429,7 +429,7 @@ def copy_custom_properties(src, dest, *, prefix='', dest_prefix='', link_driver=
if key.startswith(prefix) and key not in exclude:
new_key = dest_prefix + key[len(prefix):]
- info = rna_idprop_ui_prop_get(src, key, False)
+ info = rna_idprop_ui_prop_get(src, key, create=False)
if src != dest or new_key != key:
dest[new_key] = value