fix(editor): ghost preview logs warning when model file not found

This commit is contained in:
Kelsi 2026-05-05 09:08:03 -07:00
parent c1f74d9c9c
commit bab1318ec9

View file

@ -398,7 +398,7 @@ void EditorViewport::setGhostPreview(const std::string& path, const glm::vec3& p
if (path != ghostModelPath_ || ghostModelId_ == 0) {
clearGhostPreview();
auto data = assetManager_->readFile(path);
if (data.empty()) return;
if (data.empty()) { LOG_WARNING("Ghost: file not found: ", path); return; }
auto model = pipeline::M2Loader::load(data);
if (!model.isValid()) {
std::string skinPath = path;