Skip to content

Commit 5c45251

Browse files
Forgot to set a ModeValue
1 parent 64c42a4 commit 5c45251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Editor/Drawers/ReferenceDrawer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private void OnDeletePressed()
139139

140140
private void OnItemSelected(ReferenceMode mode, object reference)
141141
{
142-
ReferenceModeProperty.enumValueIndex = (int)mode;
142+
ModeValue = mode;
143143
PropertyValue = reference;
144144
}
145145

@@ -195,7 +195,7 @@ private void HandleDragUpdated()
195195
{
196196
Type scriptType = monoScript.GetClass();
197197

198-
if (scriptType.IsSubclassOf(typeof(UnityEngine.Object)))
198+
if (scriptType.IsSubclassOf(typeof(Object)))
199199
{
200200
SetDragAndDropMode(false);
201201
return;

0 commit comments

Comments
 (0)