Cleanup: unused variables, imports
This commit is contained in:
parent
bb78f38bd1
commit
70d2456ff1
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
# <pep8 compliant>
|
||||
from __future__ import annotations
|
||||
|
||||
import bpy
|
||||
from bpy.types import Operator
|
||||
|
||||
from bpy_extras.asset_utils import (
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import bpy
|
||||
from bpy.types import Operator
|
||||
|
||||
class SPREADSHEET_OT_toggle_pin(Operator):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue