Skip to content
Snippets Groups Projects
Commit a8f3a26c authored by Alexander Gavrilov's avatar Alexander Gavrilov
Browse files

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
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment