Always sets property values recursive to root

This commit is contained in:
VladV 2022-10-31 16:07:46 +04:00
parent c7d0f2ed84
commit 692dfb6620

View File

@ -547,8 +547,7 @@ namespace TriInspector
// because we cannot directly modify structs
// but we can re-set entire parent value
while (property._definition.SetValue(property, value, targetIndex, out var parentValue) &&
property.Parent != null &&
property.Parent.FieldType.IsValueType)
property.Parent != null)
{
property = property.Parent;
value = parentValue;