Steps to reproduce:
- Open the attached project
- Open the SampleScene
- Select the Freeform Light 2D object in the Hierarchy
- In the Inspector window, click the Edit Shape button
- In the Scene view, Edit the shape in a way, that edges overlap each other (Reference video attached)
Actual results: Multiple IndexOutOfRangeException errors are thrown while editing the Shape
Expected results: No errors or warning are thrown whe editing the Shape
Reproducible with versions: 6000.4.0b3, 6000.6.2f1, 6000.7.0b2, 7000.0.0a1
Not reproducible with versions: 6000.0.84f1, 6000.3.24f1, 6000.4.0b2
Tested on (OS): macOS 26.6.2
Notes:
- Reproduced with Freeform light object
- Issue did not reproduce when editing ShadowCaster 2D component's bounds in the same manner