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:
Diffstat (limited to 'tools/batch_glb.py')
-rw-r--r--tools/batch_glb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/batch_glb.py b/tools/batch_glb.py
index 12f1949a0..162e939f2 100644
--- a/tools/batch_glb.py
+++ b/tools/batch_glb.py
@@ -6,7 +6,8 @@ and embed textures (.png or .dds) directly into glTF materials. A texture
6that cannot be read or decoded is left out of that model and reported (one 6that cannot be read or decoded is left out of that model and reported (one
7line each, counted in the summary), never dropped silently; a model that 7line each, counted in the summary), never dropped silently; a model that
8fails to convert is named with its error. Exit status is 1 only when a 8fails to convert is named with its error. Exit status is 1 only when a
9model failed. 9model failed. A missing input folder or an output path that cannot be created
10exits 2.
10 11
11Usage: 12Usage:
12 python -I tools/batch_glb.py <in_dir> <out_dir> [--jobs N] [--up z|y] [--textures <dir>] 13 python -I tools/batch_glb.py <in_dir> <out_dir> [--jobs N] [--up z|y] [--textures <dir>]
@@ -264,7 +265,7 @@ def main(argv: list[str] | None = None) -> int:
264 ) 265 )
265 except (ValueError, OSError) as exc: 266 except (ValueError, OSError) as exc:
266 print(f"ERROR: {exc}", file=sys.stderr) 267 print(f"ERROR: {exc}", file=sys.stderr)
267 return 1 268 return 2
268 elapsed = time.monotonic() - t0 269 elapsed = time.monotonic() - t0
269 270
270 for path, err in stats["failures"]: 271 for path, err in stats["failures"]: