Skip to content

Commit

Permalink
Flatten hierarchy when searching for attributes (alelievr#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-vdw committed May 18, 2022
1 parent 9833a31 commit 9e784b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Elements/BaseNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void InitializeCustomPortTypeMethods()
Type baseType = GetType();
while (true)
{
methods = baseType.GetMethods(BindingFlags.NonPublic | BindingFlags.Instance);
methods = baseType.GetMethods(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy);
foreach (var method in methods)
{
var typeBehaviors = method.GetCustomAttributes<CustomPortTypeBehavior>().ToArray();
Expand Down

0 comments on commit 9e784b6

Please sign in to comment.