fix(editor): log when NPC model files not found (helps debug rendering)

This commit is contained in:
Kelsi 2026-05-05 21:59:51 -07:00
parent 1db1166bec
commit 9d14bc19cb

View file

@ -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;