Search Issue Tracker

Won't Fix

Votes

2

Found in

2017.1.0b1

Issue ID

904582

Regression

No

Removing element from array with shift+delete doesn't work on last element in Inspector when using PropertyDrawer

Inspector Framework

-

Steps to reproduce:
1. Download 904582_repro.zip
2. Open "Main" scene
3. Select GameObject in hierarchy
4. Expand scripts Data
5. Select last element and delete it (shift+delete)

Expected results: Last element is removed.
Actual results: Last element isn't removed and console throws out an error.

Reproduced with: 2017.1.0b2, 5.6.0p2, 5.5.3p2, 5.4.3p2

Error message:
InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)
UnityEditor.Editor.OptimizedInspectorGUIImplementation (Rect contentRect) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:267)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (Rect contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/GenericInspector.cs:32)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1200)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1010)
UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:361)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

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.