Fix exporting correct set of layers in JSON's meta.layers when -split-layers and -ignore-layer (fix #2432)

This commit is contained in:
David Capello 2020-06-10 12:55:26 -03:00
parent 36252cfc2c
commit 73ff0dc28c

View File

@ -71,7 +71,7 @@ LayerList SelectedLayers::toAllLayersList() const
for (Layer* layer = (*begin())->sprite()->firstLayer();
layer != nullptr;
layer = layer->getNext()) {
layer = layer->getNextInWholeHierarchy()) {
if (contains(layer))
output.push_back(layer);
}