mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: Changes in PropertyListView are not reflected when field don't have OnListViewChangedAttribute.
This commit is contained in:
parent
b03898d42a
commit
e170451f6a
@ -27,10 +27,14 @@ namespace Alchemy.Editor.Elements
|
|||||||
var e = new AlchemyPropertyField(arrayElement, property.GetPropertyType(true), depth + 1, true);
|
var e = new AlchemyPropertyField(arrayElement, property.GetPropertyType(true), depth + 1, true);
|
||||||
element.Add(e);
|
element.Add(e);
|
||||||
element.Bind(arrayElement.serializedObject);
|
element.Bind(arrayElement.serializedObject);
|
||||||
|
if (events != null) {
|
||||||
e.TrackPropertyValue(arrayElement, x =>
|
e.TrackPropertyValue(arrayElement, x =>
|
||||||
{
|
{
|
||||||
ReflectionHelper.Invoke(parentObj, events.OnItemChanged, new object[] { index, x.GetValue<object>() });
|
ReflectionHelper.Invoke(parentObj, events.OnItemChanged, new object[] { index, x.GetValue<object>() });
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
listView.unbindItem = (element, index) =>
|
listView.unbindItem = (element, index) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user