Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnulusGames committed Feb 22, 2024
1 parent 5b3a31c commit e21ac9e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Alchemy/Assets/Alchemy/Editor/Elements/PropertyListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ public PropertyListView(SerializedProperty property, int depth)
var e = new AlchemyPropertyField(arrayElement, property.GetPropertyType(true), depth + 1, true);
element.Add(e);
element.Bind(arrayElement.serializedObject);
if(events != null)
if (events != null)
{
e.TrackPropertyValue(arrayElement,
x =>
{
ReflectionHelper.Invoke(parentObj, events.OnItemChanged,
new object[] { index, x.GetValue<object>() });
});
e.TrackPropertyValue(arrayElement, x =>
{
ReflectionHelper.Invoke(parentObj, events.OnItemChanged,
new object[] { index, x.GetValue<object>() });
});
}
};
listView.unbindItem = (element, index) =>
Expand Down

0 comments on commit e21ac9e

Please sign in to comment.