Skip to content

Commit 9e784b6

Browse files
committed
Flatten hierarchy when searching for attributes (alelievr#216)
Fixes alelievr#216
1 parent 9833a31 commit 9e784b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Runtime/Elements/BaseNode.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void InitializeCustomPortTypeMethods()
230230
Type baseType = GetType();
231231
while (true)
232232
{
233-
methods = baseType.GetMethods(BindingFlags.NonPublic | BindingFlags.Instance);
233+
methods = baseType.GetMethods(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy);
234234
foreach (var method in methods)
235235
{
236236
var typeBehaviors = method.GetCustomAttributes<CustomPortTypeBehavior>().ToArray();

0 commit comments

Comments
 (0)