diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-04-12 11:09:54 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-04-12 11:09:54 -0400 |
commit | 9012a8a087ed8354001638471cc483bd2c0eee84 (patch) | |
tree | 80e2fe028a029deb5645eca20d3a2adae25b50e8 /scripts/content_tools/anim_tool.py | |
parent | 67eb559dc7c1be049898dd4216fbbd884496448d (diff) |
SL-338 - added --set_version to anim_tool.py, for creating files to test upload of unsupported file versions.
Diffstat (limited to 'scripts/content_tools/anim_tool.py')
-rw-r--r-- | scripts/content_tools/anim_tool.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/content_tools/anim_tool.py b/scripts/content_tools/anim_tool.py index deac2607ba..08706074dd 100644 --- a/scripts/content_tools/anim_tool.py +++ b/scripts/content_tools/anim_tool.py @@ -510,6 +510,7 @@ if __name__ == "__main__": parser.add_argument("--summary", help="print summary of the output animation", action="store_true") parser.add_argument("--skel", help="name of the avatar_skeleton file") parser.add_argument("--lad", help="name of the avatar_lad file") + parser.add_argument("--set_version", nargs=2, type=int, help="set version and sub-version to specified values") parser.add_argument("infilename", help="name of a .anim file to input") parser.add_argument("outfilename", nargs="?", help="name of a .anim file to output") args = parser.parse_args() @@ -560,6 +561,9 @@ if __name__ == "__main__": anim.add_pos([joint], pos_array) else: print "no elt or no pos data for",joint + if args.set_version: + anim.version = args.set_version[0] + anim.sub_version = args.set_version[1] if args.dump: anim.dump(args.dump) if args.summary: |