Skip to content

Commit 31f4901

Browse files
authored
Merge pull request #16 from mackysoft/fix/repaint-immediately
`serializedObject.Update()` is now called when an item is selected
2 parents 782fe29 + 368bae3 commit 31f4901

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ TypePopupCache GetTypePopup (SerializedProperty property) {
7979
object obj = m_TargetProperty.SetManagedReference(type);
8080
m_TargetProperty.isExpanded = (obj != null);
8181
m_TargetProperty.serializedObject.ApplyModifiedProperties();
82+
m_TargetProperty.serializedObject.Update();
8283
};
8384

8485
result = new TypePopupCache(popup, state);

0 commit comments

Comments
 (0)