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
5f0762cb
Commit
5f0762cb
authored
14 years ago
by
Nathan Vegdahl
Browse files
Options
Downloads
Patches
Plain Diff
The generated rig UI script wasn't registering its panels. Fixed.
parent
4752bf98
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rigify/generate.py
+2
-1
2 additions, 1 deletion
rigify/generate.py
rigify/rig_ui_template.py
+10
-0
10 additions, 0 deletions
rigify/rig_ui_template.py
with
12 additions
and
1 deletion
rigify/generate.py
+
2
−
1
View file @
5f0762cb
...
...
@@ -26,7 +26,7 @@ from rigify.utils import ORG_PREFIX, MCH_PREFIX, DEF_PREFIX, WGT_PREFIX, ROOT_NA
from
rigify.utils
import
RIG_DIR
from
rigify.utils
import
create_root_widget
from
rigify.utils
import
random_string
from
rigify.rig_ui_template
import
UI_SLIDERS
,
layers_ui
from
rigify.rig_ui_template
import
UI_SLIDERS
,
layers_ui
,
UI_REGISTER
from
rigify
import
rigs
RIG_MODULE
=
"
rigs
"
...
...
@@ -292,6 +292,7 @@ def generate_rig(context, metarig):
for
s
in
ui_scripts
:
script
.
write
(
"
\n
"
+
s
.
replace
(
"
\n
"
,
"
\n
"
)
+
"
\n
"
)
script
.
write
(
layers_ui
(
vis_layers
))
script
.
write
(
UI_REGISTER
)
script
.
use_module
=
True
t
.
tick
(
"
The rest:
"
)
...
...
This diff is collapsed.
Click to expand it.
rigify/rig_ui_template.py
+
10
−
0
View file @
5f0762cb
...
...
@@ -94,3 +94,13 @@ class RigLayers(bpy.types.Panel):
return
code
UI_REGISTER
=
"""
def register():
bpy.utils.register_class(RigUI)
bpy.utils.register_class(RigLayers)
register()
"""
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