Search Issue Tracker
Active
Votes
0
Found in
2021.2.0a9
Issue ID
1321192
Regression
Yes
[Cinemachine] Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
[Cinemachine] Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
On undoing after removing "CinemachineVirtualCamera" in prefab, editor thrown Assertion failed on expression, Refer to the attached video
Steps to reproduce:
1) Create a new project
2) Window > Package Manager > Cinemachine
3) Hierarchy > Right-Click > Cinemachine > VirtualCamera > make a prefab
4) Project > CM vcam > Inspector > Right-Click >Remove Component
5) Edit > Undo
Actual Result:
Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
Expected Result:
No error in the console.
Reproducible in:
2021.2.0a9 with Package version 2.7.2.
Working Fine in:
2021.2.0a8 with Package version 2.7.2.
2021.1.0b12 with Package version 2.7.2
Environment:
Windows 10, macOS 10.15, and Ubuntu 18.04 LTS
Stack trace:
Assertion failed on expression: '!GetUndoManager().IsProcessing()'
UnityEditor.ObjectFactory:CreateGameObject (string,System.Type[])
Cinemachine.Editor.InspectorUtility:CreateGameObject (string,System.Type[]) (at library/packagecache/com.unity.cinemachine@2.7.2/editor/utility/inspectorutility.cs:188)
Cinemachine.Editor.CinemachineVirtualCameraEditor/CreatePipelineWithUndo/<>c:<.cctor>b__0_0 (Cinemachine.CinemachineVirtualCamera,string,Cinemachine.CinemachineComponentBase[]) (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:253)
Cinemachine.CinemachineVirtualCamera:CreatePipeline (Cinemachine.CinemachineVirtualCamera) (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:291)
Cinemachine.CinemachineVirtualCamera:UpdateComponentPipeline () (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:438)
Cinemachine.CinemachineVirtualCamera:GetComponentPipeline () (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:316)
Cinemachine.Editor.CinemachineVirtualCameraEditor:UpdateComponentEditors () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:440)
Cinemachine.Editor.CinemachineVirtualCameraEditor:UpdateInstanceData () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:427)
Cinemachine.Editor.CinemachineVirtualCameraEditor:ResetTargetOnUndo () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:52)
UnityEditor.Undo:Internal_CallUndoRedoPerformed ()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
Add comment