Cleanup: use static sets

This commit is contained in:
Campbell Barton
2019-12-16 13:43:45 +11:00
parent 3b163483c4
commit 80062e6305
5 changed files with 19 additions and 19 deletions

View File

@@ -378,7 +378,7 @@ class ToolSelectPanelHelper:
@staticmethod
def _tool_active_from_context(context, space_type, mode=None, create=False):
if space_type in ('VIEW_3D', 'PROPERTIES'):
if space_type in {'VIEW_3D', 'PROPERTIES'}:
if mode is None:
mode = context.mode
tool = context.workspace.tools.from_space_view3d_mode(mode, create=create)