Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-10 21:28:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-10 21:28:22 +0300
commit2576268fb85071f2e3ba80142ddb01e733c07e08 (patch)
tree82d19e1d86807ffdc94cd41e2fd61bfdaa0aae54 /release/scripts/modules/rigify/neck_flex.py
parent0779f2c42599dd665730902cd669741070bdb46b (diff)
missed a header last commit, added custom exceptions to rigify so they can be caught and converted into reports and have normal errors display the stack trace as useual.
Diffstat (limited to 'release/scripts/modules/rigify/neck_flex.py')
-rw-r--r--release/scripts/modules/rigify/neck_flex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/rigify/neck_flex.py b/release/scripts/modules/rigify/neck_flex.py
index 68015b3ebd3..31763518f09 100644
--- a/release/scripts/modules/rigify/neck_flex.py
+++ b/release/scripts/modules/rigify/neck_flex.py
@@ -19,6 +19,7 @@
# <pep8 compliant>
import bpy
+from rigify import RigifyError
from rigify_utils import bone_class_instance, copy_bone_simple
from rna_prop_ui import rna_idprop_ui_prop_get
@@ -91,7 +92,7 @@ def metarig_definition(obj, orig_bone_name):
children = head.children
if len(children) != 1:
- print("expected the head to have only 1 child.")
+ raise RigifyError("expected the head bone '%s' to have only 1 child." % orig_bone_name)
child = children[0]
bone_definition = [body.name, head.name, child.name]