diff options
Diffstat (limited to 'tools/batch_glb.py')
| -rw-r--r-- | tools/batch_glb.py | 5 |
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 | |||
| 6 | that cannot be read or decoded is left out of that model and reported (one | 6 | that cannot be read or decoded is left out of that model and reported (one |
| 7 | line each, counted in the summary), never dropped silently; a model that | 7 | line each, counted in the summary), never dropped silently; a model that |
| 8 | fails to convert is named with its error. Exit status is 1 only when a | 8 | fails to convert is named with its error. Exit status is 1 only when a |
| 9 | model failed. | 9 | model failed. A missing input folder or an output path that cannot be created |
| 10 | exits 2. | ||
| 10 | 11 | ||
| 11 | Usage: | 12 | Usage: |
| 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"]: |