From 9012a8a087ed8354001638471cc483bd2c0eee84 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Tue, 12 Apr 2016 11:09:54 -0400 Subject: SL-338 - added --set_version to anim_tool.py, for creating files to test upload of unsupported file versions. --- scripts/content_tools/anim_tool.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/content_tools') 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: -- cgit v1.2.3