Commit c1e48c9
FIX: NullReferenceException when using Prefab Overrides window (#1567)
* Fixed InputActionDrawerBase not initializing the TreeView correctly
- This change makes sure the TreeView.serializedObject matches the property.
The value was null which was causing `OnGUI` to throw an exception.
- The change to `UpdateSerializedObjectDirtyCount` was not necessary for this
fix but it should protect against cases where the serializedObject becomes
null for some reason. The `EditorUtility.GetDirtyCount` method returns 0
when the argument is null, so this seems like the appropriate thing to do.
* CHANGE: move changelog entry into next release
Co-authored-by: Håkan Sidenvall <hakan.sidenvall@unity3d.com>
Co-authored-by: James McGill <james.mcgill@unity3d.com>1 parent 4acce32 commit c1e48c9
3 files changed
Lines changed: 4 additions & 3 deletions
File tree
- Packages/com.unity.inputsystem
- InputSystem/Editor
- AssetEditor
- PropertyDrawers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
| 1394 | + | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments