Revert "Cleanup: use tuples in python according to feedback"

This reverts commit b1f0e4c2d6.

Sets are typically preferred for __contains__ checks
when order doesn't matter.
This commit is contained in:
2018-09-17 09:00:46 +10:00
parent a06d803a5a
commit 75980f4af2
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class NODE_HT_header(Header):
layout.separator_spacer()
row = layout.row()
types_that_support_material = ('MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'GPENCIL')
types_that_support_material = {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'GPENCIL'}
# disable material slot buttons when pinned, cannot find correct slot within id_from (#36589)
# disable also when the selected object does not support materials
row.enabled = not snode.pin and ob.type in types_that_support_material