Fix Unsigned Integer value field to prevent negative values
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user