From 7dddefa4b82315a458652b645ef4185632b242c5 Mon Sep 17 00:00:00 2001 From: VladV Date: Sun, 12 Mar 2023 13:16:36 +0400 Subject: [PATCH] Fix overriden members shown twice --- Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs | 2 +- .../TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs | 2 +- .../TriRegisterShownByTriPropertiesTypeProcessor.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs b/Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs index 9361e6d..fc9aa2b 100644 --- a/Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs +++ b/Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs @@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors private static bool IsSerialized(MethodInfo methodInfo) { - return methodInfo.GetCustomAttribute() != null; + return methodInfo.GetCustomAttribute(false) != null; } } } \ No newline at end of file diff --git a/Editor/TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs b/Editor/TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs index ed88f86..fbe357b 100644 --- a/Editor/TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs +++ b/Editor/TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs @@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors private static bool IsSerialized(FieldInfo fieldInfo) { - return fieldInfo.GetCustomAttribute() != null && + return fieldInfo.GetCustomAttribute(false) != null && TriUnitySerializationUtilities.IsSerializableByUnity(fieldInfo) == false; } } diff --git a/Editor/TypeProcessors/TriRegisterShownByTriPropertiesTypeProcessor.cs b/Editor/TypeProcessors/TriRegisterShownByTriPropertiesTypeProcessor.cs index e2d4f4c..6ccc720 100644 --- a/Editor/TypeProcessors/TriRegisterShownByTriPropertiesTypeProcessor.cs +++ b/Editor/TypeProcessors/TriRegisterShownByTriPropertiesTypeProcessor.cs @@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors private static bool IsSerialized(PropertyInfo propertyInfo) { - return propertyInfo.GetCustomAttribute() != null; + return propertyInfo.GetCustomAttribute(false) != null; } } } \ No newline at end of file