diff options
Diffstat (limited to 'release/scripts')
6 files changed, 3 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py index 0b6b92cfd7e..8ec9bececc5 100644 --- a/release/scripts/startup/bl_operators/anim.py +++ b/release/scripts/startup/bl_operators/anim.py @@ -438,7 +438,7 @@ class ANIM_OT_show_group_colors_deprecated(Operator): bl_options = {'REGISTER'} @classmethod - def poll(cls, context): + def poll(cls, _context): return False diff --git a/release/scripts/startup/bl_operators/assets.py b/release/scripts/startup/bl_operators/assets.py index 315e0dabbf4..48f07a03773 100644 --- a/release/scripts/startup/bl_operators/assets.py +++ b/release/scripts/startup/bl_operators/assets.py @@ -19,7 +19,6 @@ # <pep8 compliant> from __future__ import annotations -import bpy from bpy.types import Operator from bpy_extras.asset_utils import ( diff --git a/release/scripts/startup/bl_operators/spreadsheet.py b/release/scripts/startup/bl_operators/spreadsheet.py index 2a194fd4627..91fca883bb5 100644 --- a/release/scripts/startup/bl_operators/spreadsheet.py +++ b/release/scripts/startup/bl_operators/spreadsheet.py @@ -18,7 +18,6 @@ from __future__ import annotations -import bpy from bpy.types import Operator class SPREADSHEET_OT_toggle_pin(Operator): diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 063d8f9184f..f6a03b4769c 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -2015,7 +2015,7 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): col.prop(st, "proxy_render_size") col = layout.column() - prop = col.prop(st, "use_proxies") + col.prop(st, "use_proxies") if st.proxy_render_size in {'NONE', 'SCENE'}: col.enabled = False diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index c13cf97d24a..e68f006ccc1 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3775,8 +3775,6 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu): col.operator("mesh.delete", text="Delete Vertices").type = 'VERT' if is_edge_mode: - render = context.scene.render - col = row.column(align=True) col.label(text="Edge Context Menu", icon='EDGESEL') col.separator() @@ -4005,8 +4003,6 @@ class VIEW3D_MT_edit_mesh_edges_data(Menu): def draw(self, context): layout = self.layout - render = context.scene.render - layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("transform.edge_crease") diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index ee8fc1f3531..72baa5331bf 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1848,7 +1848,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_weight_falloff(GreasePencilBrushFallof ts = context.tool_settings settings = ts.gpencil_weight_paint brush = settings.brush - return (settings and settings.brush and settings.brush.curve) + return (brush and brush.curve) # Grease Pencil vertex painting tools @@ -1940,7 +1940,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_vertex_color(View3DPanel, Panel): ts = context.tool_settings settings = ts.gpencil_vertex_paint brush = settings.brush - gp_settings = brush.gpencil_settings col = layout.column() |