Skip to content

Commit

Permalink
Fix overriden members shown twice
Browse files Browse the repository at this point in the history
  • Loading branch information
vanifatovvlad committed Mar 12, 2023
1 parent 48dce09 commit 7dddefa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti

private static bool IsSerialized(MethodInfo methodInfo)
{
return methodInfo.GetCustomAttribute<ButtonAttribute>() != null;
return methodInfo.GetCustomAttribute<ButtonAttribute>(false) != null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti

private static bool IsSerialized(FieldInfo fieldInfo)
{
return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null &&
return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null &&
TriUnitySerializationUtilities.IsSerializableByUnity(fieldInfo) == false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti

private static bool IsSerialized(PropertyInfo propertyInfo)
{
return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null;
return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null;
}
}
}

0 comments on commit 7dddefa

Please sign in to comment.