From 764bfab41ceb1ddaa2dac55011a170947a337377 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 10 Jun 2020 12:58:26 -0300 Subject: [PATCH] Add test for https://github.com/aseprite/aseprite/issues/2432 --- cli/sheet.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cli/sheet.sh b/cli/sheet.sh index 09ed5561d..f6e2c2be0 100644 --- a/cli/sheet.sh +++ b/cli/sheet.sh @@ -316,3 +316,18 @@ assert(#sheet2.meta.layers == 12) assert(json.encode(sheet1.meta.layers) == json.encode(sheet2.meta.layers)) EOF $ASEPRITE -b -script "$d/check.lua" || exit 1 + +# https://github.com/aseprite/aseprite/issues/2432 +# -ignore-layer is ignoring extra layers when -split-layers is used +d=$t/issue-2432 +$ASEPRITE -b -trim -ignore-layer "c" -all-layers "sprites/groups3abc.aseprite" -data "$d/sheet1.json" -format json-array -sheet "$d/sheet1.png" -list-layers +$ASEPRITE -b -trim -ignore-layer "c" -all-layers -split-layers "sprites/groups3abc.aseprite" -data "$d/sheet2.json" -format json-array -sheet "$d/sheet2.png" -list-layers +cat >$d/check.lua <