diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 02:00:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 02:01:00 +0300 |
commit | 75980f4af2ab85047165b8971adec799b845cbab (patch) | |
tree | 2262cbaa67838612bdc6a6bcea3018581e55ecf5 | |
parent | a06d803a5ac29885d575a8b0acba0160223d18f9 (diff) |
Revert "Cleanup: use tuples in python according to feedback"
This reverts commit b1f0e4c2d673320085cd5e1c68f4f5f814bacede.
Sets are typically preferred for __contains__ checks
when order doesn't matter.
m--------- | release/scripts/addons | 0 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/addons b/release/scripts/addons -Subproject d5ad293372d3a66ea52ec9d307104e3cd62d3cb +Subproject 5f7fba0565a7c9ae93eae31a08fc9bbbd16d333 diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 7fa6d106fb9..4dff94019ab 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -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 |