Skip to content

Commit 9eb9bad

Browse files
committed
fix: remove wrong usages of the ApplyModifiedProperties
1 parent e308643 commit 9eb9bad

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Scripts/Editor/PropertyDrawers/CollectionItemIndirectReferencePropertyDrawer.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
7373

7474
private void DrawItemDrawer(Rect position, SerializedProperty property, GUIContent label, ScriptableObject collectionItem)
7575
{
76-
collectionItemPropertyDrawer.DrawCollectionItemDrawer(ref position, property, collectionItem, label, item =>
77-
{
78-
SetSerializedPropertyGUIDs(item);
79-
drawingProperty.serializedObject.ApplyModifiedProperties();
80-
});
76+
collectionItemPropertyDrawer.DrawCollectionItemDrawer(ref position, property, collectionItem, label, SetSerializedPropertyGUIDs);
8177
}
8278

8379
private void SetSerializedPropertyGUIDs(ScriptableObject item)
@@ -156,4 +152,4 @@ private SOCItemEditorOptionsAttribute GetOptionsAttribute()
156152
return null;
157153
}
158154
}
159-
}
155+
}

Scripts/Editor/PropertyDrawers/CollectionItemPropertyDrawer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
102102
newItem =>
103103
{
104104
property.objectReferenceValue = newItem;
105-
property.serializedObject.ApplyModifiedProperties();
106105
});
107106
}
108107
EditorGUI.EndProperty();

0 commit comments

Comments
 (0)