From 9d14bc19cb30db29e4abac328dee0014f1ce1338 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 21:59:51 -0700 Subject: [PATCH] fix(editor): log when NPC model files not found (helps debug rendering) --- 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 140af345..a140f663 100644 --- a/tools/editor/editor_viewport.cpp +++ b/tools/editor/editor_viewport.cpp @@ -240,7 +240,10 @@ void EditorViewport::rebuildObjects(const std::vector& objects, modelId = it->second; } else { auto data = assetManager_->readFile(npc.modelPath); - if (data.empty()) continue; + if (data.empty()) { + LOG_DEBUG("NPC model not found (showing marker): ", npc.modelPath); + continue; + } auto model = pipeline::M2Loader::load(data); if (!model.isValid()) { std::string skinPath = npc.modelPath;