diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-05-18 09:06:46 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-05-18 09:06:46 -0400 |
commit | bb2c147c26efad32f72fd7cdf1378824a4b0085d (patch) | |
tree | 3da28ac9c85806fba60c924018cc34865337d09d /scripts/content_tools/skel_tool.py | |
parent | 82111ecbde4bacd4cbd5ae5d076876d0ddedd04d (diff) |
SL-315 - fix for max/linux build failure, additional lad validation in skel_tool.py
Diffstat (limited to 'scripts/content_tools/skel_tool.py')
-rw-r--r-- | scripts/content_tools/skel_tool.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/content_tools/skel_tool.py b/scripts/content_tools/skel_tool.py index caf8070071..5d4ea0e059 100644 --- a/scripts/content_tools/skel_tool.py +++ b/scripts/content_tools/skel_tool.py @@ -261,9 +261,15 @@ def validate_lad_tree(ladtree,skeltree,orig_ladtree): driver = driven_param.getparent().getparent() driven_id = driven_param.get("id") driver_id = driver.get("id") + actual_param = next(param for param in ladtree.iter("param") if param.get("id")==driven_id) if not driven_id in drivers: drivers[driven_id] = set() drivers[driven_id].add(driver_id) + if (actual_param.get("value_min") != driver.get("value_min") or \ + actual_param.get("value_max") != driver.get("value_max")): + if args.verbose: + print "MISMATCH min max:",driver.get("id"),"drives",driven_param.get("id"),"min",driver.get("value_min"),actual_param.get("value_min"),"max",driver.get("value_max"),actual_param.get("value_max") + for driven_id in drivers: dset = drivers[driven_id] if len(dset) != 1: @@ -271,7 +277,6 @@ def validate_lad_tree(ladtree,skeltree,orig_ladtree): else: if args.verbose: print "driven_id",driven_id,"has one driver",dset - if orig_ladtree: # make sure expected message format is unchanged orig_message_params_by_id = dict((int(param.get("id")),param) for param in orig_ladtree.iter("param") if param.get("group") in ["0","3"]) |