Skip to content

Commit

Permalink
Merge pull request #103 from realitycollective/feature/fix-system-typ…
Browse files Browse the repository at this point in the history
…e-filter

Fix NRE with Implements attribute when no exclude types set
  • Loading branch information
FejZa authored May 15, 2024
2 parents 8d69906 + b21988d commit 58cbdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/PropertyDrawers/TypeReferencePropertyDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ where type.IsVisible && isValid
where (FilterConstraintOverride == null || FilterConstraintOverride.Invoke(type)) &&
(filter == null || filter.IsConstraintSatisfied(type))
where excludedTypes == null || !excludedTypes.Contains(type)
where !type.GetInterfaces().Any(interfaceType => excludedTypes.Contains(interfaceType))
where !type.GetInterfaces().Any(interfaceType => excludedTypes != null && excludedTypes.Contains(interfaceType))
select type);
}

Expand Down

0 comments on commit 58cbdc2

Please sign in to comment.