Fix Unsigned Integer value field to prevent negative values

This commit is contained in:
Wojtek Figat
2021-01-24 13:30:48 +01:00
parent 47bff456e0
commit b04e1381dc
6 changed files with 38 additions and 2 deletions

View File

@@ -143,6 +143,8 @@ namespace FlaxEditor.GUI.Input
try
{
var value = ShuntingYard.Parse(Text);
if (value < 0)
value = 0;
Value = (uint)value;
}
catch (Exception ex)