Commit 34f88e2
committed
fix(sprite): verify the sprites exist before slice_sheet reports them
The previous commit closes the one reproducible way Unity accepts a grid and
emits nothing. It is not the only way: Unity reports an import that generates no
sprite through the console, not through an exception or a return value, so any
future cause lands as the same silent success. Counting the sprites actually on
the asset answers that without having to enumerate the causes.
No dedicated test: the only trigger that reproduces on demand is the NPOT path,
and the commit before this one fixes that path rather than leaving it available
to assert on. Every existing slice test asserts the sprite count through the
Slice fixture helper, so the invariant this guard enforces is already the one
they measure.1 parent 7b61eba commit 34f88e2
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
315 | 327 | | |
316 | 328 | | |
317 | 329 | | |
| |||
0 commit comments