From 053278da7c197b51e486726b60aefd78433e5821 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 11:38:56 -0700 Subject: [PATCH] fix(editor): accurate file count in export toast (includes all PNGs and textures) --- tools/editor/editor_app.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 8181a215..e6db0960 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -838,11 +838,14 @@ void EditorApp::exportZone(const std::string& outputDir) { // Count exported files int fileCount = 2; // ADT + WDT always fileCount += 2; // WOT + WHM always + fileCount += 3; // heightmap + normals + watermask PNGs + fileCount += 1; // thumbnail PNG fileCount += 1; // zone.json always fileCount += 1; // README always - if (objectPlacer_.objectCount() > 0) fileCount++; - if (npcSpawner_.spawnCount() > 0) fileCount++; - if (questEditor_.questCount() > 0) fileCount++; + if (!usedTextures.empty()) fileCount += static_cast(usedTextures.size()); // PNG textures + if (objectPlacer_.objectCount() > 0) fileCount++; // objects.json + if (npcSpawner_.spawnCount() > 0) fileCount++; // creatures.json + if (questEditor_.questCount() > 0) fileCount++; // quests.json // Validate open format completeness auto validation = ContentPacker::validateZone(base);