From 927060769b62281076e957a7ced1376f92ba0068 Mon Sep 17 00:00:00 2001 From: Raul Date: Mon, 3 Aug 2026 19:27:36 +0200 Subject: [PATCH] fixed texture not loading when loading scene --- Engine_Master_UPC/DissolveComponent.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Engine_Master_UPC/DissolveComponent.cpp b/Engine_Master_UPC/DissolveComponent.cpp index cdc4da1c..0e192a73 100644 --- a/Engine_Master_UPC/DissolveComponent.cpp +++ b/Engine_Master_UPC/DissolveComponent.cpp @@ -80,6 +80,17 @@ void DissolveComponent::serialize(IArchive& archive) if (m_textureAsset) { m_loadRequested = true; + + auto texture = app->getModuleResources()->createTexture(*m_textureAsset, true); + + if (texture) + { + m_texture = texture; + } + else + { + m_texture = nullptr; + } } } }