diff --git a/Source/Engine/Core/Types/Variant.cpp b/Source/Engine/Core/Types/Variant.cpp index 846a98992..8da9a0e9b 100644 --- a/Source/Engine/Core/Types/Variant.cpp +++ b/Source/Engine/Core/Types/Variant.cpp @@ -607,7 +607,10 @@ Variant::Variant(ScriptingObject* v) { AsObject = v; if (v) + { + Type.SetTypeName(v->GetType().Fullname); v->Deleted.Bind(this); + } } Variant::Variant(Asset* v) @@ -616,6 +619,7 @@ Variant::Variant(Asset* v) AsAsset = v; if (v) { + Type.SetTypeName(v->GetType().Fullname); v->AddReference(); v->OnUnloaded.Bind(this); }