mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 00:08:53 -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;
|
||||
|
||||
targetType = target.GetType();
|
||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]);
|
||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
|
||||
}
|
||||
else
|
||||
{
|
||||
var targetType = target.GetType();
|
||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]);
|
||||
fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
|
||||
}
|
||||
|
||||
target = fieldInfo?.GetValue(target);
|
||||
|
Loading…
Reference in New Issue
Block a user