Skip to content

Commit 1abb5d7

Browse files
committed
Assign result
Fixed bug where clicking on type selection button the first time leads to error.
1 parent 28ce93d commit 1abb5d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ TypePopupCache GetTypePopup (SerializedProperty property) {
8181
m_TargetProperty.serializedObject.ApplyModifiedProperties();
8282
};
8383

84-
m_TypePopups.Add(managedReferenceFieldTypename,new TypePopupCache(popup,state));
84+
result = new TypePopupCache(popup, state);
85+
m_TypePopups.Add(managedReferenceFieldTypename, result);
8586
}
8687
return result;
8788
}

0 commit comments

Comments
 (0)