Bug - CLI - Combination of parameters results in jumbled layer order. #1644
Comments
dncampo
added a commit
to dncampo/aseprite
that referenced
this issue
Nov 10, 2018
…d layer order. This fix iterates over layers, no matter if are visible or not
Can be also reproduced with: In this case, source .ase has 8 layers representing sides (N, NE, E, SE...) + 1 ignored layer "bg-grid". Each layer has 4 frames. |
@vovchisko are you using Aseprite v1.2.9? This should be fixed in v1.2.10-beta4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
While using the CLI, if you combine the options:
"--ignore-layer" (to ignore a specific layer, or multiple layers) as well as "--split-layers", the resulting json has the "--list-layers" layer-list order randomized.
Same thing happens if you combine "--split-layers" and specify which layers to include using multiple "--layer"
This also means that it's just not the "layers" meta block that's out-of-order, but the frames list them in the same order as the "layers" meta block, resulting in incorrect sprites if you render them in the order specified within the json.
i.e:
gives: (correct order)
whereas:
aseprite -b --split-layers --list-layers --ignore-layer _bg filename.ase --format json-array
gives: (examples, this will vary randomly)
(first run)
(second run)
(third run)
Expected output:
Aseprite and System version
The text was updated successfully, but these errors were encountered: