diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-06 19:02:50 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-06 19:02:50 +0300 |
commit | 5e0e0e4ca6d2c4c53d3ae283b66f60f29eb7a83c (patch) | |
tree | 87c91d7c963bfb3852d5f2feaf1ce86576ea74a3 /rigify | |
parent | ac864d9a1033024269c021d34cf5e95ecad25b94 (diff) | |
parent | a8f3a26c7de25c3320a93a7de7c8acc22fef8923 (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/rigs/experimental/super_chain.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py index c1e1f631..3f7ca5d6 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) |