diff --git a/Source/Engine/Content/Assets/MaterialBase.cpp b/Source/Engine/Content/Assets/MaterialBase.cpp index 6f111da68..9751f86d4 100644 --- a/Source/Engine/Content/Assets/MaterialBase.cpp +++ b/Source/Engine/Content/Assets/MaterialBase.cpp @@ -30,7 +30,7 @@ void MaterialBase::SetParameterValue(const StringView& name, const Variant& valu const auto param = Params.Get(name); if (param) { - if (param->GetValue().Type == value.Type) + if (Variant::CanCast(value, param->GetValue().Type)) { param->SetValue(value); param->SetIsOverride(true);