Cleanup: use tuples in python according to feedback

This commit is contained in:
Inês Almeida 2018-09-15 17:28:20 +02:00
parent ca3628ba0c
commit b1f0e4c2d6
Notes: blender-bot 2023-02-14 07:53:51 +01:00
Referenced by commit 75980f4af2, Revert "Cleanup: use tuples in python according to feedback"
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5f7fba0565a7c9ae93eae31a08fc9bbbd16d333a
Subproject commit d5ad293372d3a66ea52ec9d307104e3cd62d3cb6

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