mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
fix(editor): ghost preview logs warning when model file not found
This commit is contained in:
parent
c1f74d9c9c
commit
bab1318ec9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue