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-10-25 16:22:16 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-10-25 16:25:16 +0300
commit91fc865d8df563d82a4c31bbe44aa4bb9b1d0eee (patch)
treefcaa8672bd890b2cea72aee41c5a4a917f0c5c03
parent2d023ea49fc7cffb22d49c7dc796800dc9bf6d17 (diff)
Rigify: assign a more reasonable B-Bone display size in metarigs too.
-rw-r--r--rigify/metarigs/Animals/bird.py1
-rw-r--r--rigify/metarigs/Animals/cat.py1
-rw-r--r--rigify/metarigs/Animals/horse.py1
-rw-r--r--rigify/metarigs/Animals/shark.py1
-rw-r--r--rigify/metarigs/Animals/wolf.py1
-rw-r--r--rigify/metarigs/Basic/basic_human.py1
-rw-r--r--rigify/metarigs/Basic/basic_quadruped.py1
-rw-r--r--rigify/metarigs/human.py1
-rw-r--r--rigify/utils/rig.py1
9 files changed, 9 insertions, 0 deletions
diff --git a/rigify/metarigs/Animals/bird.py b/rigify/metarigs/Animals/bird.py
index 5b4bdace..eee6b38b 100644
--- a/rigify/metarigs/Animals/bird.py
+++ b/rigify/metarigs/Animals/bird.py
@@ -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)]
diff --git a/rigify/metarigs/Animals/cat.py b/rigify/metarigs/Animals/cat.py
index b86a9346..66321116 100644
--- a/rigify/metarigs/Animals/cat.py
+++ b/rigify/metarigs/Animals/cat.py
@@ -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)]
diff --git a/rigify/metarigs/Animals/horse.py b/rigify/metarigs/Animals/horse.py
index 733bc5c8..6c94a19d 100644
--- a/rigify/metarigs/Animals/horse.py
+++ b/rigify/metarigs/Animals/horse.py
@@ -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)]
diff --git a/rigify/metarigs/Animals/shark.py b/rigify/metarigs/Animals/shark.py
index d4f5e4ee..8b72a965 100644
--- a/rigify/metarigs/Animals/shark.py
+++ b/rigify/metarigs/Animals/shark.py
@@ -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)]
diff --git a/rigify/metarigs/Animals/wolf.py b/rigify/metarigs/Animals/wolf.py
index 1ed5e947..f6150c54 100644
--- a/rigify/metarigs/Animals/wolf.py
+++ b/rigify/metarigs/Animals/wolf.py
@@ -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)]
diff --git a/rigify/metarigs/Basic/basic_human.py b/rigify/metarigs/Basic/basic_human.py
index 2afbb0f9..01017cf4 100644
--- a/rigify/metarigs/Basic/basic_human.py
+++ b/rigify/metarigs/Basic/basic_human.py
@@ -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)]
diff --git a/rigify/metarigs/Basic/basic_quadruped.py b/rigify/metarigs/Basic/basic_quadruped.py
index 7743ba05..5282df25 100644
--- a/rigify/metarigs/Basic/basic_quadruped.py
+++ b/rigify/metarigs/Basic/basic_quadruped.py
@@ -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)]
diff --git a/rigify/metarigs/human.py b/rigify/metarigs/human.py
index 9d6f914e..c849303f 100644
--- a/rigify/metarigs/human.py
+++ b/rigify/metarigs/human.py
@@ -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)]
diff --git a/rigify/utils/rig.py b/rigify/utils/rig.py
index 8c646ab5..0c07cfe6 100644
--- a/rigify/utils/rig.py
+++ b/rigify/utils/rig.py
@@ -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