How to reproduce:
1. Open the “Dungeon“ project
2. In the Project window select the “Assets/DummySprites/Characters/Player/Death.png” Asset
3. In the Inspector window select “Open Sprite Editor”
4. Execute a Slice with an “Automatic” Type
5. Observe the slices
6. Undo this action by pressing Ctrl + “Z” key combination
7. Repeat steps 4-5
Expected result: Slices are distributed evenly throughout all the sprites of the character
Actual result: Only 5 slices are created and the “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection." error is thrown
Reproduced with: 2021.3.35f1, 2022.3.19f1, 2023.2.9f1, 2023.3.0b6
Reproduced on: Windows 10 (by reporter), Windows 11
Not reproduced on: No other environment tested
Notes:
1. Could not reproduce in a new project using the same Asset
2. Full error is provided in the internal comments