From ef04159b4628a7ad6c1df0aa76bda1bf55c91168 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 23:06:34 -0700 Subject: [PATCH] fix(editor): upgrade NPC model loading diagnostics to WARNING level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed NPC model invalid and load success messages from LOG_DEBUG to LOG_WARNING/LOG_INFO so they appear in the log output. This helps diagnose why specific creature models fail to render — the log will show vertex/index/batch counts for each load attempt. --- tools/editor/editor_viewport.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/editor/editor_viewport.cpp b/tools/editor/editor_viewport.cpp index 47fb3c05..212fcf1c 100644 --- a/tools/editor/editor_viewport.cpp +++ b/tools/editor/editor_viewport.cpp @@ -346,10 +346,13 @@ void EditorViewport::rebuildObjects(const std::vector& objects, } } if (!model.isValid()) { - LOG_DEBUG("NPC model invalid: ", npc.modelPath, + LOG_WARNING("NPC model invalid: ", npc.modelPath, " (verts=", model.vertices.size(), " idx=", model.indices.size(), ")"); continue; } + LOG_INFO("NPC M2 loaded: ", npc.modelPath, " (", + model.vertices.size(), "v ", model.indices.size(), "i ", + model.batches.size(), "b)"); if (model.boundRadius < 1.0f) model.boundRadius = 50.0f; // Validate vertex data bool ok = true;