Skip to content

Commit 2f833af

Browse files
committed
Include parent type in types collections caching
1 parent 9ee4a05 commit 2f833af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Assets/Editor Toolbox/Editor/Utilities/TypeUtilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static TypesCachedCollection GetCollection(TypeConstraintContext constrai
4444

4545
var typesCache = TypeCache.GetTypesDerivedFrom(parentType);
4646
var typesList = typesCache.ToList();
47+
typesList.Add(parentType);
4748
for (var i = typesList.Count - 1; i >= 0; i--)
4849
{
4950
var type = typesList[i];

0 commit comments

Comments
 (0)