diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index bed61ce3f2b10408a540ffc5697d619288c27643..ca55ef700f6bffdb445d21438b7f6abb5eef1ebd 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 18cc0e4c9444aed65cccbd92db3dd309ff0efe94..1c4220aed4cf39467db2956ec175a96bbe19b734 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 cfedffe37f37ec833485af48722a1846f811209d..c75a5ab7640efcc61650c1147d8416177dd71023 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 73c68964e5be6499f91e4ffe3dd3d8fe6a9f6ebc..7bb9baa96f0456ec403c86663a70dcc728aecc4b 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'}