Merge branch 'anim-param-warn-type' of https://github.com/Tryibion/FlaxEngine into Tryibion-anim-param-warn-type
This commit is contained in:
@@ -292,7 +292,11 @@ void AnimatedModel::SetParameterValue(const StringView& name, const Variant& val
|
||||
{
|
||||
if (param.Name == name)
|
||||
{
|
||||
param.Value = value;
|
||||
if (Variant::CanCast(value, param.Value.Type))
|
||||
param.Value = value;
|
||||
else
|
||||
LOG(Warning, "Animation Graph parameter '{0}' in AnimatedModel {1} is type '{2}' and not type '{3}'.", String(name), ToString(), param.Value.Type, value.Type);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user