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>2020-12-19 20:38:05 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-12-21 12:29:28 +0300
commita7c0667baa646896d676ad154c66aed914cc560c (patch)
tree28a1ab6f906c2a10b4b42d5d6e78cbc2de4188e1 /rigify/ui.py
parent558edbcd1b3c7ad0370ec576dff7a5a4dfbcbcb8 (diff)
Rigify: display which rig on which bone is legacy.
Diffstat (limited to 'rigify/ui.py')
-rw-r--r--rigify/ui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index 7b6539cd..63118e67 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -94,6 +94,8 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
break
for b in obj.pose.bones:
if b.rigify_type in outdated_types.keys():
+ old_bone = b.name
+ old_rig = b.rigify_type
if outdated_types[b.rigify_type]:
show_update_metarig = True
else:
@@ -106,6 +108,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
if show_not_updatable:
layout.label(text="WARNING: This metarig contains deprecated rigify rig-types and cannot be upgraded automatically.", icon='ERROR')
+ layout.label(text="("+old_rig+" on bone "+old_bone+")")
layout.label(text="If you want to use it anyway try enabling the legacy mode before generating again.")
layout.operator("pose.rigify_switch_to_legacy", text="Switch to Legacy")
@@ -115,6 +118,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
if show_update_metarig:
layout.label(text="This metarig contains old rig-types that can be automatically upgraded to benefit of rigify's new features.", icon='ERROR')
+ layout.label(text="("+old_rig+" on bone "+old_bone+")")
layout.label(text="To use it as-is you need to enable legacy mode.",)
layout.operator("pose.rigify_upgrade_types", text="Upgrade Metarig")