upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/batch_glb.py
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:15:09 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:15:09 -0500
commitd728b80c3e2a5eecd873f77f27bd051dfa1f665c (patch)
treed1617a5fe6aaf9f4515f449b4029a7722f817e04 /tools/batch_glb.py
parent5b19549ee2cb4ea06bda92a4165015b10bcc15fa (diff)
parent23d231b8c678964283fcae64ec60db081fc91143 (diff)
Merge pull request #3146 from airp1ane
Diffstat (limited to 'tools/batch_glb.py')
-rw-r--r--tools/batch_glb.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/batch_glb.py b/tools/batch_glb.py
index 442467fe7..9eca6722f 100644
--- a/tools/batch_glb.py
+++ b/tools/batch_glb.py
@@ -184,14 +184,18 @@ def main(argv: list[str] | None = None) -> int:
184 184
185 args = parser.parse_args(argv) 185 args = parser.parse_args(argv)
186 t0 = time.monotonic() 186 t0 = time.monotonic()
187 stats = batch_convert( 187 try:
188 args.in_dir, 188 stats = batch_convert(
189 args.out_dir, 189 args.in_dir,
190 up_axis=args.up, 190 args.out_dir,
191 jobs=args.jobs, 191 up_axis=args.up,
192 texture_dir=args.textures, 192 jobs=args.jobs,
193 max_tex_size=args.max_tex_size, 193 texture_dir=args.textures,
194 ) 194 max_tex_size=args.max_tex_size,
195 )
196 except (ValueError, OSError) as exc:
197 print(f"ERROR: {exc}", file=sys.stderr)
198 return 1
195 elapsed = time.monotonic() - t0 199 elapsed = time.monotonic() - t0
196 200
197 print( 201 print(