Fix empty metatile label regression

This commit is contained in:
GriffinR 2023-05-19 02:21:41 -04:00
parent ea704c8ef7
commit f232de68c9

View file

@ -895,6 +895,8 @@ void Project::updateTilesetMetatileLabels(Tileset *tileset) {
const QString prefix = tileset->getMetatileLabelPrefix();
metatileLabelsMap[tileset->name].clear();
for (int metatileId : tileset->metatileLabels.keys()) {
if (tileset->metatileLabels[metatileId].isEmpty())
continue;
QString label = prefix + tileset->metatileLabels[metatileId];
metatileLabelsMap[tileset->name][label] = metatileId;
}