Search Issue Tracker

Fixed

Fixed in 2.2.X

Votes

0

Found in [Package]

2.1.0

2.2.X

Issue ID

SPLB-146

Regression

No

All of the Spline points are placed in the prefab position, and an “IndexOutOfRangeException: Index was outside the bounds of the array“ error appears when pressing undo after creating a Spline if a prefab was placed before

Package: Splines

-

How to reproduce:
1. Open the user’s attached “Deadshot.zip” project
2. Add “Cable” prefab to a scene view
3. In the Scene window toolbar, select “Spline” in the Active Content dropdown (near View Tool)
4. Select “Draw Splines Tool” and add a couple of points
5. Press undo and observe the result

Expected result: One of Spline points gets removed
Actual result: All of the Spline points are placed onto the “Cable” prefab position, and an “IndexOutOfRangeException: Index was outside the bounds of the array“ error appears

Reproducible with: 2.1.0 (2021.3.0f1, 2021.3.22f1, 2022.2.14f1), 2.2.0 (2023.1.0b11,
2023.2.0a9)
Could not test with: 1.0.0-pre.8 (2020.3.47f1) (Errors after installing Splines package)

Reproduced on: macOS 13.2.1 (Intel)

Note: With some editor versions after the 5th step, all points of Spline were gone

  1. Resolution Note (fix version 2.2.X):

    Fixed a bug where undoing actions would not work with prefab instances containing splines.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.