How to reproduce:
1. Open the attached “IN-131796” project
2. Open the “SampleScene”
3. Enter Play mode
4. Rotate “Character A” using WASD controls
5. Press “k” to disable all SpriteSkins on “Character B”
5. Use WASD to move “Character A”
6. Observe the result
Actual result: “System.IndexOutOfRangeException: Index -1 is out of range of '30' Length.” appears in the Console window
Expected result: No errors appear
Reproducible with: 13.0.2 (6000.3.0a2, 6000.3.6f1), 14.0.0 (6000.4.0a3), 14.0.2 (6000.4.0b7),
Not reproducible with: 13.0.4 (6000.3.0a2, 6000.3.7f1), 15.0.0, 15.0.1 (6000.5.0a6)
Could not test with: 6000.0.66f2, 6000.3.0a1 (could not resolve package errors from downgrading), 13.0.2 (6000.3.7f1), 13.0.3 ((6000.3.6f1, 6000.4.0b7, 6000.5.0a7) was not able to install this package version)
Reproduced on: Windows 11
Not reproduced on: No other environment tested