Fix empty metatile label regression
This commit is contained in:
parent
ea704c8ef7
commit
f232de68c9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue