mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 17:13:51 +00:00
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:
parent
67f4097e74
commit
ef04159b46
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue