Don't encourage the usage of layerIndex param in ExportSpriteSheetParams

Until we don't have a standarized way to indicate layers by indexes.
This commit is contained in:
David Capello 2022-08-30 17:35:39 -03:00 committed by Martín Capello
parent d5f54da021
commit f925e22561

View File

@ -76,7 +76,12 @@ struct ExportSpriteSheetParams : public NewParams {
Param<bool> mergeDuplicates { this, false, "mergeDuplicates" };
Param<bool> openGenerated { this, false, "openGenerated" };
Param<std::string> layer { this, std::string(), "layer" };
Param<int> layerIndex { this, -1, "layerIndex" };
// TODO The layerIndex parameter is for internal use only, layers
// are counted in the same order as they are displayed in the
// Timeline or in the Export Sprite Sheet combobox. But this
// index is different to the one specified in the .aseprite
// file spec (where layers are counted from bottom to top).
Param<int> layerIndex { this, -1, "_layerIndex" };
Param<std::string> tag { this, std::string(), "tag" };
Param<bool> splitLayers { this, false, "splitLayers" };
Param<bool> splitTags { this, false, "splitTags" };