Fix bug of the collection size changing while still editing or sliding the size box.
This commit is contained in:
@@ -145,7 +145,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
|||||||
_size.IntValue.MinValue = 0;
|
_size.IntValue.MinValue = 0;
|
||||||
_size.IntValue.MaxValue = ushort.MaxValue;
|
_size.IntValue.MaxValue = ushort.MaxValue;
|
||||||
_size.IntValue.Value = size;
|
_size.IntValue.Value = size;
|
||||||
_size.IntValue.ValueChanged += OnSizeChanged;
|
_size.IntValue.EditEnd += OnSizeChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Elements
|
// Elements
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
|||||||
_size.IntValue.MinValue = 0;
|
_size.IntValue.MinValue = 0;
|
||||||
_size.IntValue.MaxValue = _notNullItems ? size : ushort.MaxValue;
|
_size.IntValue.MaxValue = _notNullItems ? size : ushort.MaxValue;
|
||||||
_size.IntValue.Value = size;
|
_size.IntValue.Value = size;
|
||||||
_size.IntValue.ValueChanged += OnSizeChanged;
|
_size.IntValue.EditEnd += OnSizeChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Elements
|
// Elements
|
||||||
|
|||||||
Reference in New Issue
Block a user