mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: Support inspection of private array-like fields on base class
This commit is contained in:
parent
bcaeef5ea9
commit
d84619f52d
@ -97,12 +97,12 @@ namespace Alchemy.Editor
|
|||||||
if (i >= splits.Length) continue;
|
if (i >= splits.Length) continue;
|
||||||
|
|
||||||
targetType = target.GetType();
|
targetType = target.GetType();
|
||||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]);
|
fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var targetType = target.GetType();
|
var targetType = target.GetType();
|
||||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]);
|
fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
target = fieldInfo?.GetValue(target);
|
target = fieldInfo?.GetValue(target);
|
||||||
|
Loading…
Reference in New Issue
Block a user