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.
This commit is contained in:
parent
7412d6c3e4
commit
9fa75c889f
Notes:
blender-bot
2023-02-14 18:35:47 +01:00
Referenced by issue #89394, Rigify: Error when generating from bones with custom properties
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue