From c34f585bbfd5b9d8fca3581deaea27ee180ad6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sat, 22 Mar 2025 23:41:28 +0100 Subject: [PATCH] Fixed temporary fix --- GlitchyEditor/src/EditorContentManager.bf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GlitchyEditor/src/EditorContentManager.bf b/GlitchyEditor/src/EditorContentManager.bf index 1a3357c..d25d9d8 100644 --- a/GlitchyEditor/src/EditorContentManager.bf +++ b/GlitchyEditor/src/EditorContentManager.bf @@ -972,16 +972,22 @@ class EditorContentManager : IContentManager { TreeNode assetNode = TrySilent!(AssetHierarchy.GetNodeFromAssetHandle(handle)); - _assetConverter.QueueForProcessing(assetNode->AssetFile, isBlocking); - var isBlocking; isBlocking = true; + _assetConverter.QueueForProcessing(assetNode->AssetFile, isBlocking); + if (isBlocking) { asset = _assetCache.GetCacheEntry(handle); - Log.EngineLogger.Assert(asset != null, "Failed to load asset."); + //Log.EngineLogger.Assert(asset != null, "Failed to load asset."); + + if (asset == null) + { + Log.EngineLogger.Error($"Failed to load Asset \"{assetNode->Path}\" (Handle: {handle})"); + return new NewPlaceholderAsset(handle, .Error); + } } else {