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>2019-11-06 19:02:05 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-11-06 19:02:05 +0300
commita8f3a26c7de25c3320a93a7de7c8acc22fef8923 (patch)
treeee6b7b5ae5e2f5ea44d7aed49dc01663760754be
parent5a528cae96da99b1e072e2a59478b4febcf5591c (diff)
Rigify: fix a 2.80 API update bug in experimental.super_chain.
-rw-r--r--rigify/rigs/experimental/super_chain.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py
index 9c34478d..df0facdf 100644
--- a/rigify/rigs/experimental/super_chain.py
+++ b/rigify/rigs/experimental/super_chain.py
@@ -470,14 +470,15 @@ class Rig:
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]]
- if 'bbone_custom_handle_start' in dir(def_pb) and 'bbone_custom_handle_end' in dir(def_pb):
- if not self.SINGLE_BONE:
- def_pb.bbone_custom_handle_start = ctrl_start
- def_pb.bbone_custom_handle_end = ctrl_end
- else:
- def_pb.bbone_custom_handle_start = mch_start
- def_pb.bbone_custom_handle_end = mch_end
- def_pb.use_bbone_custom_handles = True
+ if not self.SINGLE_BONE:
+ def_pb.bone.bbone_custom_handle_start = ctrl_start.bone
+ def_pb.bone.bbone_custom_handle_end = ctrl_end.bone
+ else:
+ def_pb.bone.bbone_custom_handle_start = mch_start.bone
+ def_pb.bone.bbone_custom_handle_end = mch_end.bone
+
+ def_pb.bone.bbone_handle_type_start = 'ABSOLUTE'
+ def_pb.bone.bbone_handle_type_end = 'ABSOLUTE'
def create_drivers(self, bones):
bpy.ops.object.mode_set(mode='OBJECT')
@@ -645,7 +646,7 @@ class Rig:
self.parent_bones(bones)
# ctrls snapping pass
- self.aggregate_ctrls(bones)
+ #self.aggregate_ctrls(bones)
self.constrain_bones(bones)
self.stick_to_bendy_bones(bones)
@@ -757,8 +758,8 @@ def parameters_ui(layout, params):
r = layout.row()
r.prop(params, 'def_parenting')
- r = layout.row()
- r.prop(params, 'cluster_ctrls')
+ #r = layout.row()
+ #r.prop(params, 'cluster_ctrls')
ControlLayersOption.TWEAK.parameters_ui(layout, params)