mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Merge pull request #50 from Akeit0/fix-propertylistview
Fix: Changes in PropertyListView are not reflected when field don't h…
This commit is contained in:
commit
c08aaaf3a0
@ -27,10 +27,14 @@ namespace Alchemy.Editor.Elements
|
||||
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>() });
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
listView.unbindItem = (element, index) =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user