Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,7 @@ namespace
|
||||
}
|
||||
else if (pCVar->GetType() == CVAR_FLOAT)
|
||||
{
|
||||
PySetCVarFromFloat(pName, std::stod(pValue));
|
||||
PySetCVarFromFloat(pName, static_cast<float>(std::stod(pValue)));
|
||||
}
|
||||
else if (pCVar->GetType() != CVAR_STRING)
|
||||
{
|
||||
@@ -152,11 +152,11 @@ namespace
|
||||
}
|
||||
else if (pCVar->GetType() == CVAR_INT)
|
||||
{
|
||||
PySetCVarFromInt(pName, AZStd::any_cast<AZ::s64>(value));
|
||||
PySetCVarFromInt(pName, static_cast<int>(AZStd::any_cast<AZ::s64>(value)));
|
||||
}
|
||||
else if (pCVar->GetType() == CVAR_FLOAT)
|
||||
{
|
||||
PySetCVarFromFloat(pName, AZStd::any_cast<double>(value));
|
||||
PySetCVarFromFloat(pName, static_cast<float>(AZStd::any_cast<double>(value)));
|
||||
}
|
||||
else if (pCVar->GetType() == CVAR_STRING)
|
||||
{
|
||||
@@ -548,13 +548,11 @@ namespace
|
||||
if (title.empty())
|
||||
{
|
||||
throw std::runtime_error("Incorrect title argument passed in. ");
|
||||
return result;
|
||||
}
|
||||
|
||||
if (values.size() == 0)
|
||||
{
|
||||
throw std::runtime_error("Empty value list passed in. ");
|
||||
return result;
|
||||
}
|
||||
|
||||
QStringList list;
|
||||
|
||||
Reference in New Issue
Block a user