fix(editor): upgrade NPC model loading diagnostics to WARNING level

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.
This commit is contained in:
Kelsi 2026-05-05 23:06:34 -07:00
parent 67f4097e74
commit ef04159b46

View file

@ -346,10 +346,13 @@ void EditorViewport::rebuildObjects(const std::vector<PlacedObject>& 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;