mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
fix(editor): log when NPC model files not found (helps debug rendering)
This commit is contained in:
parent
1db1166bec
commit
9d14bc19cb
1 changed files with 4 additions and 1 deletions
|
|
@ -240,7 +240,10 @@ void EditorViewport::rebuildObjects(const std::vector<PlacedObject>& 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue