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
a8f3a26c
Commit
a8f3a26c
authored
5 years ago
by
Alexander Gavrilov
Browse files
Options
Downloads
Patches
Plain Diff
Rigify: fix a 2.80 API update bug in experimental.super_chain.
parent
5a528cae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rigify/rigs/experimental/super_chain.py
+12
-11
12 additions, 11 deletions
rigify/rigs/experimental/super_chain.py
with
12 additions
and
11 deletions
rigify/rigs/experimental/super_chain.py
+
12
−
11
View file @
a8f3a26c
...
@@ -470,14 +470,15 @@ class Rig:
...
@@ -470,14 +470,15 @@ class Rig:
mch_start
=
pb
[
bones
[
'
chain
'
][
'
mch
'
][
0
]]
mch_start
=
pb
[
bones
[
'
chain
'
][
'
mch
'
][
0
]]
mch_end
=
pb
[
bones
[
'
chain
'
][
'
mch_ctrl
'
][
-
1
]]
if
bones
[
'
chain
'
][
'
mch_ctrl
'
]
else
pb
[
bones
[
'
chain
'
][
'
mch
'
][
-
1
]]
mch_end
=
pb
[
bones
[
'
chain
'
][
'
mch_ctrl
'
][
-
1
]]
if
bones
[
'
chain
'
][
'
mch_ctrl
'
]
else
pb
[
bones
[
'
chain
'
][
'
mch
'
][
-
1
]]
if
'
bbone_custom_handle_start
'
in
dir
(
def_pb
)
and
'
bbone_custom_handle_end
'
in
dir
(
def_pb
):
if
not
self
.
SINGLE_BONE
:
if
not
self
.
SINGLE_BONE
:
def_pb
.
bone
.
bbone_custom_handle_start
=
ctrl_start
.
bone
def_pb
.
bbone_custom_handle_start
=
ctrl_start
def_pb
.
bone
.
bbone_custom_handle_end
=
ctrl_end
.
bone
def_pb
.
bbone_custom_handle_end
=
ctrl_end
else
:
else
:
def_pb
.
bone
.
bbone_custom_handle_start
=
mch_start
.
bone
def_pb
.
bbone_custom_handle_start
=
mch_start
def_pb
.
bone
.
bbone_custom_handle_end
=
mch_end
.
bone
def_pb
.
bbone_custom_handle_end
=
mch_end
def_pb
.
use_bbone_custom_handles
=
True
def_pb
.
bone
.
bbone_handle_type_start
=
'
ABSOLUTE
'
def_pb
.
bone
.
bbone_handle_type_end
=
'
ABSOLUTE
'
def
create_drivers
(
self
,
bones
):
def
create_drivers
(
self
,
bones
):
bpy
.
ops
.
object
.
mode_set
(
mode
=
'
OBJECT
'
)
bpy
.
ops
.
object
.
mode_set
(
mode
=
'
OBJECT
'
)
...
@@ -645,7 +646,7 @@ class Rig:
...
@@ -645,7 +646,7 @@ class Rig:
self
.
parent_bones
(
bones
)
self
.
parent_bones
(
bones
)
# ctrls snapping pass
# ctrls snapping pass
self
.
aggregate_ctrls
(
bones
)
#
self.aggregate_ctrls(bones)
self
.
constrain_bones
(
bones
)
self
.
constrain_bones
(
bones
)
self
.
stick_to_bendy_bones
(
bones
)
self
.
stick_to_bendy_bones
(
bones
)
...
@@ -757,8 +758,8 @@ def parameters_ui(layout, params):
...
@@ -757,8 +758,8 @@ def parameters_ui(layout, params):
r
=
layout
.
row
()
r
=
layout
.
row
()
r
.
prop
(
params
,
'
def_parenting
'
)
r
.
prop
(
params
,
'
def_parenting
'
)
r
=
layout
.
row
()
#
r = layout.row()
r
.
prop
(
params
,
'
cluster_ctrls
'
)
#
r.prop(params, 'cluster_ctrls')
ControlLayersOption
.
TWEAK
.
parameters_ui
(
layout
,
params
)
ControlLayersOption
.
TWEAK
.
parameters_ui
(
layout
,
params
)
...
...
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