Skip to content

Commit

Permalink
Merge pull request #51 from Akeit0/fix-propertylistview
Browse files Browse the repository at this point in the history
Fix: Syntax bug
  • Loading branch information
AnnulusGames committed Feb 22, 2024
2 parents c08aaaf + 9cfd544 commit 5b3a31c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 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,15 @@ 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) {
e.TrackPropertyValue(arrayElement, x =>
{
ReflectionHelper.Invoke(parentObj, events.OnItemChanged, new object[] { index, x.GetValue<object>() });
});
if(events != null)
{
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 5b3a31c

Please sign in to comment.