Cleanup: use static sets instead of tuples

This commit is contained in:
Campbell Barton
2020-06-23 13:30:21 +10:00
parent fd65055b69
commit bdb49890cb
3 changed files with 5 additions and 5 deletions

View File

@@ -623,7 +623,7 @@ def brush_settings(layout, context, brush, popover=False):
layout.prop(brush, "pose_origin_type")
layout.prop(brush, "pose_offset")
layout.prop(brush, "pose_smooth_iterations")
if brush.pose_deform_type == 'ROTATE_TWIST' and brush.pose_origin_type in ('TOPOLOGY','FACE_SETS'):
if brush.pose_deform_type == 'ROTATE_TWIST' and brush.pose_origin_type in {'TOPOLOGY', 'FACE_SETS'}:
layout.prop(brush, "pose_ik_segments")
layout.prop(brush, "use_pose_ik_anchored")
layout.separator()

View File

@@ -131,7 +131,7 @@ class VIEW3D_HT_tool_header(Header):
if is_valid_context:
brush = context.tool_settings.gpencil_sculpt_paint.brush
tool = brush.gpencil_tool
if tool in ('SMOOTH', 'RANDOMIZE'):
if tool in {'SMOOTH', 'RANDOMIZE'}:
layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_options")
layout.popover("VIEW3D_PT_tools_grease_pencil_sculpt_appearance")
elif tool_mode == 'WEIGHT_GPENCIL':

View File

@@ -1694,7 +1694,7 @@ class GreasePencilSculptPanel:
@classmethod
def poll(cls, context):
if context.space_data.type in ('VIEW_3D', 'PROPERTIES'):
if context.space_data.type in {'VIEW_3D', 'PROPERTIES'}:
if context.gpencil_data is None:
return False
@@ -1768,7 +1768,7 @@ class GreasePencilWeightPanel:
@classmethod
def poll(cls, context):
if context.space_data.type in ('VIEW_3D', 'PROPERTIES'):
if context.space_data.type in {'VIEW_3D', 'PROPERTIES'}:
if context.gpencil_data is None:
return False
@@ -1843,7 +1843,7 @@ class GreasePencilVertexPanel:
@classmethod
def poll(cls, context):
if context.space_data.type in ('VIEW_3D', 'PROPERTIES'):
if context.space_data.type in {'VIEW_3D', 'PROPERTIES'}:
if context.gpencil_data is None:
return False