Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
7.2k stars 386 forks source link

Exporting split layers with group layers is broken #1102

Open novhack opened 2 months ago

novhack commented 2 months ago

Pixelorama version: v1.0.2-stable (Steam Linux version)

OS/device including version: Arch Linux, KDE Plasma 6

Issue description: There are currently two issues I found in exporting split layers:

  1. If the project has group layers these will be shown in the preview of split layer images even though they are always empty
  2. When export is pressed an incorrect amount of images is created:
    • For instance if there are 3 group layers and 9 pixel layers the export will create only 9 images but will include empty group layers in the export so 3 images will be missing (the export probably cycles through all layers but only exports as many as there are pixel layers)

Steps to reproduce:

  1. Create a project with 3 group layers and 3 normal pixel layers in each group.
  2. In export select option: Split layers
  3. Empty group layers will be shown in the preview
  4. Clicking Export generates 9 png files with empty images for 2 group layers and 3 last layers missing
OverloadedOrama commented 2 months ago

I can replicate the first issue but not the second. When split layers is enabled, the exporter makes every layer its own separate image, without taking into account the layer type. This causes the first issue, but the amount of images exported should be the same as the amount of layers, which it is on my testing.