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] [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)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment