From bab1318ec9517806b7e6706c45d8f1341e8500fb Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 09:08:03 -0700 Subject: [PATCH] fix(editor): ghost preview logs warning when model file not found --- tools/editor/editor_viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/editor_viewport.cpp b/tools/editor/editor_viewport.cpp index 5da01854..ffdbcf2a 100644 --- a/tools/editor/editor_viewport.cpp +++ b/tools/editor/editor_viewport.cpp @@ -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;