How to reproduce:
- Open the attached package
- Select Torus GO in Hierarchy
- In Visual Effect panel (Scene View) select Torus in Gizmos dropdown
- Modify minorRadius value by dragging slider in exposed property
- Modify minorRadius value by dragging gizmos handle
- Select CTRL/CMD + Z or Edit -> Undo Modified Property
Actual result: Errors are thrown to the console
ObjectDisposedException: SerializedProperty m_PropertySheet.m_Float.m_Array.Array.data[2].m_Overridden has disappeared!
UnityEditor.SerializedProperty.get_boolValue () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:1067)
UnityEditor.VFX.AdvancedVisualEffectEditor+GizmoContext+<>c_DisplayClass17_0.<BuildValue>b_0 (System.Collections.Generic.List`1[T] o) (at /Users/vita.skruibyte/Documents/unity/packages/com.unity.visualeffectgraph/Editor/Inspector/AdvancedVisualEffectEditor.cs:601)
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:196)
type is not a supported int value
UnityEditor.VFX.AdvancedVisualEffectEditor:OnSceneGUI ()
(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,UnityEditor.Editor)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Reproducible with: 2021.3.16f1
Not reproducible with 2021.2.16f1