Fix bug of the collection size changing while still editing or sliding the size box.

This commit is contained in:
Chandler Cox
2023-05-04 11:03:39 -05:00
parent 6d7e23f254
commit 98a5985ce9
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ namespace FlaxEditor.CustomEditors.Editors
_size.IntValue.MinValue = 0;
_size.IntValue.MaxValue = ushort.MaxValue;
_size.IntValue.Value = size;
_size.IntValue.ValueChanged += OnSizeChanged;
_size.IntValue.EditEnd += OnSizeChanged;
}
// Elements

View File

@@ -190,7 +190,7 @@ namespace FlaxEditor.CustomEditors.Editors
_size.IntValue.MinValue = 0;
_size.IntValue.MaxValue = _notNullItems ? size : ushort.MaxValue;
_size.IntValue.Value = size;
_size.IntValue.ValueChanged += OnSizeChanged;
_size.IntValue.EditEnd += OnSizeChanged;
}
// Elements