From 505802706a66180bfc8eb738aefe08452283784b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 17 May 2025 11:35:49 -0400 Subject: [PATCH] Show the layer names instead of naming them by index For some reason SqEX ships their internal names of layers in retail, so we can show them! --- apps/mapeditor/src/objectlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mapeditor/src/objectlistmodel.cpp b/apps/mapeditor/src/objectlistmodel.cpp index 3b6d9cf..37144f9 100644 --- a/apps/mapeditor/src/objectlistmodel.cpp +++ b/apps/mapeditor/src/objectlistmodel.cpp @@ -143,7 +143,7 @@ void ObjectListModel::refresh() auto layerItem = new TreeInformation(); layerItem->type = TreeType::Layer; layerItem->parent = fileItem; - layerItem->name = i18n("Layer %1", j); // TODO: do display names if we have them + layerItem->name = QString::fromLatin1(layer.name); layerItem->row = j; layerItem->id = layer.id; fileItem->children.push_back(layerItem);