Skip to content

Commit 7fb0bc2

Browse files
committed
fix: upgradeMetarigTypes limb_type and basci.copy to sup.copy no wdgt
1 parent 1b5177c commit 7fb0bc2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

utils.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,18 @@ def upgradeMetarigTypes(metarig, revert=False):
168168
rig_defs = outdated_types
169169

170170
for bone in metarig.pose.bones:
171-
rg_type = bone.rigify_type
172-
if rg_type in rig_defs:
173-
bone.rigify_type = rig_defs[rg_type]
171+
rig_type = bone.rigify_type
172+
if rig_type in rig_defs:
173+
bone.rigify_type = rig_defs[rig_type]
174+
if 'leg' in rig_type:
175+
bone.rigfy_parameters.limb_type = 'leg'
176+
if 'arm' in rig_type:
177+
bone.rigfy_parameters.limb_type = 'arm'
178+
if 'paw' in rig_type:
179+
bone.rigfy_parameters.limb_type = 'paw'
180+
if rig_type == "basic.copy":
181+
bone.rigify_parameters.make_widget = False
182+
174183

175184

176185
#=======================

0 commit comments

Comments
 (0)