From f6f7bbb3d01dd5ca44c05ae7e00ca9f349e63569 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 3 Jun 2026 10:58:17 +0200 Subject: [PATCH] Fix Variant static typenames caching bug in Editor --- Source/Engine/Core/Types/Variant.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/Core/Types/Variant.cpp b/Source/Engine/Core/Types/Variant.cpp index 78b506b58..d4fd3fdce 100644 --- a/Source/Engine/Core/Types/Variant.cpp +++ b/Source/Engine/Core/Types/Variant.cpp @@ -125,7 +125,7 @@ VariantType::VariantType(Types type, const StringAnsiView& typeName, bool static VariantType::VariantType(Types type, const ScriptingType& sType) : VariantType(type) { - SetTypeName(sType.Fullname, sType.Module->CanReload); + SetTypeName(sType.Fullname, !sType.Module->CanReload); } VariantType::VariantType(Types type, const MClass* klass) @@ -345,13 +345,13 @@ void VariantType::SetTypeName(const StringAnsiView& typeName, bool staticName) void VariantType::SetTypeName(const ScriptingType& type) { - SetTypeName(type.Fullname, type.Module->CanReload); + SetTypeName(type.Fullname, !type.Module->CanReload); } void VariantType::SetTypeName(const MClass& klass) { #if USE_CSHARP - SetTypeName(klass.GetFullName(), klass.GetAssembly()->CanReload()); + SetTypeName(klass.GetFullName(), !klass.GetAssembly()->CanReload()); #endif }