Fix regression in material editing when compilation failed

This commit is contained in:
Wojtek Figat
2025-04-15 22:40:29 +02:00
parent c786a84dc6
commit 61a11f4a29

View File

@@ -653,6 +653,8 @@ bool Asset::OnCheckSave(const StringView& path) const
if (LastLoadFailed())
{
LOG(Warning, "Saving asset that failed to load.");
if (path.IsEmpty())
return false;
}
if (WaitForLoaded())
{