mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: use static sets
This commit is contained in:
parent
56ee96349d
commit
c516659b5e
5 changed files with 8 additions and 8 deletions
|
|
@ -113,7 +113,7 @@ class OperatorSpecEditMode:
|
|||
"""
|
||||
self.operator_name = operator_name
|
||||
self.operator_parameters = operator_parameters
|
||||
if select_mode not in ['VERT', 'EDGE', 'FACE']:
|
||||
if select_mode not in {'VERT', 'EDGE', 'FACE'}:
|
||||
raise ValueError("select_mode must be either {}, {} or {}".format('VERT', 'EDGE', 'FACE'))
|
||||
self.select_mode = select_mode
|
||||
self.selection = selection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue