Steps to reproduce:
- Create and open a new project
- Open Project Settings -> Graphics -> Shaders
- Add a new Keyword Declaration Override using the "+" button, name it
- Apply the changes
- Add another Keyword Declaration Override
- Click "Revert"
- Remove the first Keyword Declaration Override using the "-" button
- Observe the Console
Actual results: An "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection." error is thrown
Expected results: Nothing is thrown and the first Keyword Declaration Override is removed
Reproducible with versions: 6000.3.0a6, 6000.3.16f1, 6000.4.8f1, 6000.5.0b10,, 6000.6.0a5
Tested on (OS): Windows 11 Pro (25H2)