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
db23ff3d
Commit
db23ff3d
authored
4 years ago
by
Alexander Gavrilov
Browse files
Options
Downloads
Patches
Plain Diff
Rigify: use user-friendly feature set names in the filter dropdown.
parent
8618d72c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rigify/feature_set_list.py
+6
-2
6 additions, 2 deletions
rigify/feature_set_list.py
rigify/ui.py
+3
-3
3 additions, 3 deletions
rigify/ui.py
with
9 additions
and
5 deletions
rigify/feature_set_list.py
+
6
−
2
View file @
db23ff3d
...
...
@@ -122,10 +122,14 @@ def get_ui_name(feature_set):
def
feature_set_items
(
scene
,
context
):
"""
Get items for the Feature Set EnumProperty
"""
items
=
[(
'
all
'
,)
*
3
,
(
'
rigify
'
,)
*
3
,
]
items
=
[
(
'
all
'
,
'
All
'
,
'
All installed feature sets and rigs bundled with Rigify
'
),
(
'
rigify
'
,
'
Rigify Built-in
'
,
'
Rigs bundled with Rigify
'
),
]
for
fs
in
get_installed_list
():
items
.
append
((
fs
,)
*
3
)
ui_name
=
get_ui_name
(
fs
)
items
.
append
((
fs
,
ui_name
,
ui_name
))
return
items
...
...
This diff is collapsed.
Click to expand it.
rigify/ui.py
+
3
−
3
View file @
db23ff3d
...
...
@@ -54,7 +54,7 @@ def build_type_list(context, rigify_types):
for
r
in
sorted
(
rig_lists
.
rigs
):
if
(
context
.
object
.
data
.
active_feature_set
in
(
'
all
'
,
rig_lists
.
rigs
[
r
][
'
feature_set
'
])
or
len
(
feature_set_list
.
feature_set_items
(
context
.
scene
,
context
))
==
2
or
len
(
feature_set_list
.
get_installed_list
(
))
==
0
):
a
=
rigify_types
.
add
()
a
.
name
=
r
...
...
@@ -180,7 +180,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
id_store
.
rigify_active_type
=
0
# Rig type list
if
len
(
feature_set_list
.
feature_set_items
(
context
.
scene
,
context
))
>
2
:
if
len
(
feature_set_list
.
get_installed_list
(
))
>
0
:
row
=
layout
.
row
()
row
.
prop
(
context
.
object
.
data
,
"
active_feature_set
"
)
row
=
layout
.
row
()
...
...
@@ -598,7 +598,7 @@ class BONE_PT_rigify_buttons(bpy.types.Panel):
build_type_list
(
context
,
id_store
.
rigify_types
)
# Rig type field
if
len
(
feature_set_list
.
feature_set_items
(
context
.
scene
,
context
))
>
2
:
if
len
(
feature_set_list
.
get_installed_list
(
))
>
0
:
row
=
layout
.
row
()
row
.
prop
(
context
.
object
.
data
,
"
active_feature_set
"
)
row
=
layout
.
row
()
...
...
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