Cleanup: use equality instead of contains for single-item sets

This commit is contained in:
2022-03-30 11:27:54 +11:00
parent 87e5c4230f
commit be8270bc76
8 changed files with 13 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ class MESH_UL_mylist(bpy.types.UIList):
if self.layout_type in {'DEFAULT', 'COMPACT'}:
pass
# 'GRID' layout type should be as compact as possible (typically a single icon!).
elif self.layout_type in {'GRID'}:
elif self.layout_type == 'GRID':
pass
# Called once to draw filtering/reordering options.