mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Fix overriden members shown twice
This commit is contained in:
parent
48dce095db
commit
7dddefa4b8
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user