Fixes for Android/Linux

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 19:52:00 -07:00
parent 9a8ec8bfcd
commit e3cf15a00f
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -837,11 +837,11 @@ static void SetEditorRange(EditorType* editor, IVariable* var)
static const float defaultMax = 100.0f;
if (var->HasCustomLimits())
{
editor->setRange(static_cast<EditorType::value_type>(min), static_cast<EditorType::value_type>(max));
editor->setRange(static_cast<typename EditorType::value_type>(min), static_cast<typename EditorType::value_type>(max));
}
else
{
editor->setSoftRange(static_cast<EditorType::value_type>(defaultMin), static_cast<EditorType::value_type>(defaultMax));
editor->setSoftRange(static_cast<typename EditorType::value_type>(defaultMin), static_cast<typename EditorType::value_type>(defaultMax));
}
// Set the step size. The default variable step is 0, so if it's