[Bf-extensions-cvs] [9fa75c88] master: Fix T89394: update for mandatory keyword argument in Python API.

Alexander Gavrilov noreply at git.blender.org
Sun Jun 27 21:34:59 CEST 2021


Commit: 9fa75c889fb54651c83c73563397dd8c8c828443
Author: Alexander Gavrilov
Date:   Sun Jun 27 22:33:24 2021 +0300
Branches: master
https://developer.blender.org/rBA9fa75c889fb54651c83c73563397dd8c8c828443

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.

===================================================================

M	rigify/utils/bones.py
M	rigify/utils/mechanism.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list