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:
authorNathan Vegdahl <cessen@cessen.com>2011-02-24 05:16:38 +0300
committerNathan Vegdahl <cessen@cessen.com>2011-02-24 05:16:38 +0300
commit0f24f76bc870146aec5c0c6fb15daac24c0ae1cc (patch)
tree27ab01253d6cfefc35a14f1c36dc8ce10de5c5aa /rigify/utils.py
parent5f0762cbf512dcd2773eecd28e9f9d44794ca1cd (diff)
The leg/foot rig can now rock from side to side. Requires a special metarig
setup (not yet added to the default human metarig).
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.
"""