Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:56:36 -07:00
parent e6b5342c07
commit 2963739288
51 changed files with 286 additions and 337 deletions
+3 -5
View File
@@ -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;