Fix hidden layers not being exported correctly.
This commit is contained in:
parent
8caeee8868
commit
da8928be0f
|
@ -10,9 +10,9 @@ local function ExportSpritesheetAdvanced()
|
||||||
|
|
||||||
local spr = Sprite(app.sprite)
|
local spr = Sprite(app.sprite)
|
||||||
|
|
||||||
|
l.RevealLayers(spr.layers)
|
||||||
l.DeleteLayers(spr, spr.layers)
|
l.DeleteLayers(spr, spr.layers)
|
||||||
l.FlattenLayers(spr.layers)
|
l.FlattenLayers(spr.layers)
|
||||||
l.RevealLayers(spr.layers)
|
|
||||||
|
|
||||||
app.command.ExportSpriteSheet {
|
app.command.ExportSpriteSheet {
|
||||||
splitLayers = true
|
splitLayers = true
|
||||||
|
|
|
@ -34,7 +34,6 @@ local function FlattenLayers(layers)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Makes all layers visible.
|
-- Makes all layers visible.
|
||||||
-- This should be called after deleteLayers and flattenLayers
|
|
||||||
local function RevealLayers(layers)
|
local function RevealLayers(layers)
|
||||||
for _, layer in ipairs(layers) do
|
for _, layer in ipairs(layers) do
|
||||||
if layer.isGroup then
|
if layer.isGroup then
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "advanced-spritesheets",
|
"name": "advanced-spritesheets",
|
||||||
"displayName": "Advanced Spritesheets",
|
"displayName": "Advanced Spritesheets",
|
||||||
"description": "Improved spritesheet export functionality for Aseprite.",
|
"description": "Improved spritesheet export functionality for Aseprite.",
|
||||||
"version": "0.1",
|
"version": "0.1.1",
|
||||||
"author": { "name": "Anna Wiggins",
|
"author": { "name": "Anna Wiggins",
|
||||||
"email": "annabunches@gmail.com",
|
"email": "annabunches@gmail.com",
|
||||||
"url": "https://annabunches.net" },
|
"url": "https://annabunches.net" },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user