From f232de68c97fc9cffc0f2d292a1708a469cc9bb3 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Fri, 19 May 2023 02:21:41 -0400 Subject: [PATCH] Fix empty metatile label regression --- src/project.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/project.cpp b/src/project.cpp index 768d9757..7a73ac3e 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -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; }