Rigify: assign a more reasonable B-Bone display size in metarigs too.
This commit is contained in:
parent
2d023ea49f
commit
91fc865d8d
|
@ -1502,6 +1502,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 7, 10, 13, 16, 21, 24]) for x in range(32)]
|
||||
|
|
|
@ -2975,6 +2975,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 5, 7, 10, 13, 16, 19]) for x in range(32)]
|
||||
|
|
|
@ -1371,6 +1371,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 4, 7, 10, 13, 16, 19, 21]) for x in range(32)]
|
||||
|
|
|
@ -790,6 +790,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 5, 6, 8, 10]) for x in range(32)]
|
||||
|
|
|
@ -3223,6 +3223,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 4, 5, 7, 10, 13, 16, 19]) for x in range(32)]
|
||||
|
|
|
@ -684,6 +684,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [3, 7, 10, 13, 16]) for x in range(32)]
|
||||
|
|
|
@ -799,6 +799,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [3, 4, 7, 10, 13, 16, 19]) for x in range(32)]
|
||||
|
|
|
@ -2718,6 +2718,7 @@ def create(obj):
|
|||
bone.select = True
|
||||
bone.select_head = True
|
||||
bone.select_tail = True
|
||||
bone.bbone_x = bone.bbone_z = bone.length * 0.05
|
||||
arm.edit_bones.active = bone
|
||||
|
||||
arm.layers = [(x in [0, 3, 5, 7, 10, 13, 16]) for x in range(32)]
|
||||
|
|
|
@ -283,6 +283,7 @@ def write_metarig(obj, layers=False, func_name="create", groups=False):
|
|||
code.append(" bone.select = True")
|
||||
code.append(" bone.select_head = True")
|
||||
code.append(" bone.select_tail = True")
|
||||
code.append(" bone.bbone_x = bone.bbone_z = bone.length * 0.05")
|
||||
code.append(" arm.edit_bones.active = bone")
|
||||
|
||||
# Set appropriate layers visible
|
||||
|
|
Loading…
Reference in New Issue