Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-22 06:52:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-22 06:52:05 +0300
commita1f74409ea3003a3eedb4d613336953a546c2397 (patch)
tree2ab50659327f18612a66f2c068b833c0831f45d9
parentf148c5613d166b0b7c63542417631d9807e61cb1 (diff)
Cleanup: redundant set/tuple use for comparison
-rw-r--r--io_import_images_as_planes.py2
-rw-r--r--object_boolean_tools.py4
-rw-r--r--object_carver/carver_operator.py2
-rw-r--r--space_view3d_pie_menus/pie_animation_menu.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index bed61ce3..ca55ef70 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -853,7 +853,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
def invoke(self, context, event):
engine = context.scene.render.engine
if engine not in {'CYCLES', 'BLENDER_EEVEE'}:
- if engine not in {'BLENDER_WORKBENCH'}:
+ if engine != 'BLENDER_WORKBENCH':
self.report({'ERROR'}, "Cannot generate materials for unknown %s render engine" % engine)
return {'CANCELLED'}
else:
diff --git a/object_boolean_tools.py b/object_boolean_tools.py
index 18cc0e4c..1c4220ae 100644
--- a/object_boolean_tools.py
+++ b/object_boolean_tools.py
@@ -355,7 +355,7 @@ class BTool_DrawPolyBrush(Operator):
actObj.select_set(state=True)
bpy.ops.gpencil.draw("INVOKE_DEFAULT", mode="DRAW_POLY")
- if event.type in {"RIGHTMOUSE"}:
+ if event.type == "RIGHTMOUSE":
# use this to pass to the Grease Pencil eraser (see T52321)
pass
@@ -396,7 +396,7 @@ class BTool_DrawPolyBrush(Operator):
return {"FINISHED"}
- if event.type in {"ESC"}:
+ if event.type == "ESC":
bpy.ops.ed.undo() # remove o Grease Pencil
self.set_cont_draw(context)
diff --git a/object_carver/carver_operator.py b/object_carver/carver_operator.py
index cfedffe3..c75a5ab7 100644
--- a/object_carver/carver_operator.py
+++ b/object_carver/carver_operator.py
@@ -210,7 +210,7 @@ class CARVER_OT_operator(bpy.types.Operator):
self.check_region(context,event)
for area in win.screen.areas:
- if area.type in ('VIEW_3D'):
+ if area.type == 'VIEW_3D':
for region in area.regions:
if not region_types or region.type in region_types:
region.tag_redraw()
diff --git a/space_view3d_pie_menus/pie_animation_menu.py b/space_view3d_pie_menus/pie_animation_menu.py
index 73c68964..7bb9baa9 100644
--- a/space_view3d_pie_menus/pie_animation_menu.py
+++ b/space_view3d_pie_menus/pie_animation_menu.py
@@ -80,7 +80,7 @@ class PIE_OT_InsertAutoKeyframe(Operator):
ts.use_keyframe_insert_auto ^= 1
for area in context.screen.areas:
- if area.type in ('TIMELINE'):
+ if area.type == 'TIMELINE':
area.tag_redraw()
return {'FINISHED'}