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:
Diffstat (limited to 'rigify/utils.py')
-rw-r--r--rigify/utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/rigify/utils.py b/rigify/utils.py
index f0a19aac..f7a33c22 100644
--- a/rigify/utils.py
+++ b/rigify/utils.py
@@ -385,6 +385,15 @@ def connected_children_names(obj, bone_name):
return names
+def has_connected_children(bone):
+ """ Returns true/false whether a bone has connected children or not.
+ """
+ t = False
+ for b in bone.children:
+ t = t or b.use_connect
+ return t
+
+
def get_layers(layers):
""" Does it's best to exctract a set of layers from any data thrown at it.
"""