Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
a7c0667b
Commit
a7c0667b
authored
4 years ago
by
Alexander Gavrilov
Browse files
Options
Downloads
Patches
Plain Diff
Rigify: display which rig on which bone is legacy.
parent
558edbcd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rigify/ui.py
+4
-0
4 additions, 0 deletions
rigify/ui.py
with
4 additions
and
0 deletions
rigify/ui.py
+
4
−
0
View file @
a7c0667b
...
@@ -94,6 +94,8 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
...
@@ -94,6 +94,8 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
break
break
for
b
in
obj
.
pose
.
bones
:
for
b
in
obj
.
pose
.
bones
:
if
b
.
rigify_type
in
outdated_types
.
keys
():
if
b
.
rigify_type
in
outdated_types
.
keys
():
old_bone
=
b
.
name
old_rig
=
b
.
rigify_type
if
outdated_types
[
b
.
rigify_type
]:
if
outdated_types
[
b
.
rigify_type
]:
show_update_metarig
=
True
show_update_metarig
=
True
else
:
else
:
...
@@ -106,6 +108,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
...
@@ -106,6 +108,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
if
show_not_updatable
:
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
=
"
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
.
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
"
)
layout
.
operator
(
"
pose.rigify_switch_to_legacy
"
,
text
=
"
Switch to Legacy
"
)
...
@@ -115,6 +118,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
...
@@ -115,6 +118,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
if
show_update_metarig
:
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
=
"
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
.
label
(
text
=
"
To use it as-is you need to enable legacy mode.
"
,)
layout
.
operator
(
"
pose.rigify_upgrade_types
"
,
text
=
"
Upgrade Metarig
"
)
layout
.
operator
(
"
pose.rigify_upgrade_types
"
,
text
=
"
Upgrade Metarig
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment