Fix postfx material flicker due to lost asset reference

This commit is contained in:
2026-04-08 09:27:31 +02:00
parent f2cf5ce1ab
commit 737cac559c
@@ -217,7 +217,11 @@ void PostFxMaterialsSettings::BlendWith(PostFxMaterialsSettings& other, float we
while (Materials.Count() != POST_PROCESS_SETTINGS_MAX_MATERIALS && indexSrc < other.Materials.Count())
{
if (!Materials.Contains(materialsSrc[indexSrc].GetID()))
Materials.Add(materialsSrc[indexSrc]);
{
auto& ref = materialsSrc[indexSrc];
ref.Get(); // Load asset
Materials.Add(ref);
}
indexSrc++;
}
}