Skip to content

Commit 7dddefa

Browse files
committed
Fix overriden members shown twice
1 parent 48dce09 commit 7dddefa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Editor/TypeProcessors/TriRegisterButtonsTypeProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti
2424

2525
private static bool IsSerialized(MethodInfo methodInfo)
2626
{
27-
return methodInfo.GetCustomAttribute<ButtonAttribute>() != null;
27+
return methodInfo.GetCustomAttribute<ButtonAttribute>(false) != null;
2828
}
2929
}
3030
}

Editor/TypeProcessors/TriRegisterShownByTriFieldsTypeProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti
2424

2525
private static bool IsSerialized(FieldInfo fieldInfo)
2626
{
27-
return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null &&
27+
return fieldInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null &&
2828
TriUnitySerializationUtilities.IsSerializableByUnity(fieldInfo) == false;
2929
}
3030
}

Editor/TypeProcessors/TriRegisterShownByTriPropertiesTypeProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void ProcessType(Type type, List<TriPropertyDefinition> properti
2424

2525
private static bool IsSerialized(PropertyInfo propertyInfo)
2626
{
27-
return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>() != null;
27+
return propertyInfo.GetCustomAttribute<ShowInInspectorAttribute>(false) != null;
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)