[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3119] trunk/py/scripts/addons/rigify/ rigs/biped/leg/deform.py: Rigify: patch from Ryan King to give better error messages from
Nathan Vegdahl
cessen at cessen.com
Thu Mar 15 02:02:21 CET 2012
Revision: 3119
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3119
Author: cessen
Date: 2012-03-15 01:02:20 +0000 (Thu, 15 Mar 2012)
Log Message:
-----------
Rigify: patch from Ryan King to give better error messages from
the biped leg rig.
Modified Paths:
--------------
trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
Modified: trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py 2012-03-15 00:12:55 UTC (rev 3118)
+++ trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py 2012-03-15 01:02:20 UTC (rev 3119)
@@ -89,7 +89,7 @@
leg_bones = [bone] + connected_children_names(self.obj, bone)[:2]
if len(leg_bones) != 2:
- raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone)))
+ raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type -- leg bones != 2" % (strip_org(bone)))
# Get the foot and heel
foot = None
@@ -101,9 +101,10 @@
else:
heel = b.name
- if foot is None or heel is None:
- raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone)))
-
+ if foot is None:
+ raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type -- could not find foot bone (that is, a bone with >1 children connected) attached to bone '%s'" % (strip_org(bone), strip_org(shin)))
+ if heel is None:
+ raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type -- could not find heel bone (that is, a bone with no childrenconnected) attached to bone '%s'" % (strip_org(bone), strip_org(shin)))
# Get the toe
toe = None
for b in self.obj.data.bones[foot].children:
@@ -111,8 +112,8 @@
toe = b.name
if toe is None:
- raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone)))
-
+ raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type -- toe is None" % (strip_org(bone)))
+
self.org_bones = leg_bones + [foot, toe, heel]
# Get rig parameters
More information about the Bf-extensions-cvs
mailing list