From b5f4eab65bf458db9247562fd0b265687259890e Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Thu, 26 May 2016 12:52:09 -0400 Subject: SL-117, SL-315 - resetSkeleton() tweaks, additional validation of skeleton file --- scripts/content_tools/skel_tool.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/content_tools') diff --git a/scripts/content_tools/skel_tool.py b/scripts/content_tools/skel_tool.py index 5d4ea0e059..f7301c55e1 100644 --- a/scripts/content_tools/skel_tool.py +++ b/scripts/content_tools/skel_tool.py @@ -155,6 +155,7 @@ def validate_child_order(tree, ogtree, fix=False): # - corresponding right and left joints should be mirror symmetric. # - childless elements should be in short form ( instead of ) # - digits of precision should be consistent (again, except for old joints) +# - new bones should have pos, pivot the same def validate_skel_tree(tree, ogtree, reftree, fix=False): print "validate_skel_tree" (num_bones,num_cvs) = (0,0) @@ -205,6 +206,10 @@ def validate_skel_tree(tree, ogtree, reftree, fix=False): enforce_precision_rules(element) for field in ["pos","pivot"]: enforce_symmetry(tree, element, field, fix) + if element.get("support")=="extended": + if element.get("pos") != element.get("pivot"): + print "extended joint",element.get("name"),"has mismatched pos, pivot" + if element.tag == "linden_skeleton": num_bones = int(element.get("num_bones")) -- cgit v1.2.3