summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-09-12 10:48:35 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-09-12 10:48:35 -0400
commitb5bbb9f5d56e891d5ebe94bbc2e800db85094ab9 (patch)
tree83ff482ef7b29f6406afe315a6641458ca4a995b
parentd07a8b9965b54fca34b239a51af46b996a58d553 (diff)
SL-109 - in skel_tool.py, added check for bone drivers that don't do anything.
-rw-r--r--scripts/content_tools/skel_tool.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/content_tools/skel_tool.py b/scripts/content_tools/skel_tool.py
index 7fefa59293..9e413340aa 100644
--- a/scripts/content_tools/skel_tool.py
+++ b/scripts/content_tools/skel_tool.py
@@ -296,12 +296,16 @@ def validate_lad_tree(ladtree,skeltree,orig_ladtree):
# print etree.tostring(skel_param)
# for k,v in skel_param.attrib.iteritems():
# print k,"->",v
- #print "skel_param",skel_param_name
for bone in skel_param.iter("bone"):
bone_name = bone.get("name")
if not bone_name in bone_names:
print "skel param references invalid bone",bone_name
print etree.tostring(bone)
+ bone_scale = float_tuple(bone.get("scale","0 0 0"))
+ bone_offset = float_tuple(bone.get("offset","0 0 0"))
+ param = bone.getparent().getparent()
+ if bone_scale==(0, 0, 0) and bone_offset==(0, 0, 0):
+ print "no-op bone",bone.get("name"),"in param",param.get("id","-1")
drivers = {}
for driven_param in ladtree.iter("driven"):
driver = driven_param.getparent().getparent()