Fix overriden members shown twice

This commit is contained in:
VladV 2023-03-12 13:16:36 +04:00
parent 48dce095db
commit 7dddefa4b8
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors
private static bool IsSerialized(MethodInfo methodInfo) private static bool IsSerialized(MethodInfo methodInfo)
{ {
return methodInfo.GetCustomAttribute<ButtonAttribute>() != null; return methodInfo.GetCustomAttribute<ButtonAttribute>(false) != null;
} }
} }
} }

View File

@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors
private static bool IsSerialized(FieldInfo fieldInfo) private static bool IsSerialized(FieldInfo fieldInfo)
{ {
return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null && return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null &&
TriUnitySerializationUtilities.IsSerializableByUnity(fieldInfo) == false; TriUnitySerializationUtilities.IsSerializableByUnity(fieldInfo) == false;
} }
} }

View File

@ -24,7 +24,7 @@ namespace TriInspector.TypeProcessors
private static bool IsSerialized(PropertyInfo propertyInfo) private static bool IsSerialized(PropertyInfo propertyInfo)
{ {
return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null; return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null;
} }
} }
} }