Search Issue Tracker

Fixed in 2018.1.X

Votes

0

Found in

2018.1.0b5

Issue ID

1001184

Regression

No

[2D] [Animation] Using Undo after rotating bone on rigged sprite prefab breaks rigging

2D

-

[2D] [Animation] Using Undo after rotating bone on rigged sprite prefab breaks rigging

Package Versions:
"com.unity.2d.common":"1.0.5-experimental",
"com.unity.2d.animation":"1.0.8-experimental",

Steps to Repro:
- Import sprite and rig it properly (create bones/geometry/weight)
- Add Sprite Skin component and generate Bone GOs
- Make a prefab of this skinned/boned sprite
- Select a bone and rotate it
- Use ctrl-Z to Undo

The rigging for the sprite breaks and this error occurs:

InvalidOperationException: The NativeArray has been deallocated, it is not allowed to access it
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckReadAndThrowNoEarlyOut (AtomicSafetyHandle handle)
Unity.Collections.NativeArray`1[UnityEngine.Vector3].CheckElementReadAccess (Int32 index) (at C:/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:108)
Unity.Collections.NativeArray`1[UnityEngine.Vector3].get_Item (Int32 index) (at C:/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:132)
UnityEngine.Experimental.U2D.Animation.SpriteSkin.UpdateBoundsIfNeeded () (at C:/ProgramData/Unity/cache/packages/staging-packages.unity.com/com.unity.2d.animation@1.0.8-experimental/Runtime/SpriteSkin.cs:78)
UnityEngine.Experimental.U2D.Animation.SpriteSkin.Update () (at C:/ProgramData/Unity/cache/packages/staging-packages.unity.com/com.unity.2d.animation@1.0.8-experimental/Runtime/SpriteSkin.cs:97)

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.