Cleanup: unused vars
This commit is contained in:
@@ -905,7 +905,6 @@ class LoadImageAsEmpty:
|
||||
|
||||
def execute(self, context):
|
||||
scene = context.scene
|
||||
space = context.space_data
|
||||
cursor = scene.cursor.location
|
||||
|
||||
try:
|
||||
|
||||
@@ -1125,7 +1125,6 @@ class WM_OT_properties_edit(Operator):
|
||||
)
|
||||
|
||||
data_path = self.data_path
|
||||
value = self.value
|
||||
prop = self.property
|
||||
|
||||
prop_old = getattr(self, "_last_prop", [None])[0]
|
||||
|
||||
@@ -622,8 +622,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
layout.separator()
|
||||
col = layout.column()
|
||||
|
||||
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
|
||||
|
||||
col.label(text="Textures:")
|
||||
row = layout.row()
|
||||
row.prop(md, "use_mirror_u", text="Flip U")
|
||||
|
||||
@@ -137,8 +137,6 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
|
||||
|
||||
|
||||
def brush_texpaint_common_clone(panel, context, layout, brush, settings, projpaint=False):
|
||||
capabilities = brush.image_paint_capabilities
|
||||
|
||||
ob = context.active_object
|
||||
col = layout.column()
|
||||
|
||||
@@ -179,8 +177,6 @@ def brush_texpaint_common_color(panel, context, layout, brush, settings, projpai
|
||||
|
||||
|
||||
def brush_texpaint_common_gradient(panel, context, layout, brush, settings, projpaint=False):
|
||||
capabilities = brush.image_paint_capabilities
|
||||
|
||||
layout.template_color_ramp(brush, "gradient", expand=True)
|
||||
|
||||
layout.use_property_split = True
|
||||
@@ -349,7 +345,6 @@ def brush_basic_sculpt_settings(layout, context, brush, *, compact=False):
|
||||
tool_settings = context.tool_settings
|
||||
capabilities = brush.sculpt_capabilities
|
||||
settings = tool_settings.gpencil_sculpt
|
||||
tool = settings.sculpt_tool
|
||||
|
||||
row = layout.row(align=True)
|
||||
|
||||
|
||||
@@ -1463,10 +1463,6 @@ class IMAGE_PT_uv_cursor(Panel):
|
||||
layout = self.layout
|
||||
|
||||
sima = context.space_data
|
||||
ima = sima.image
|
||||
|
||||
|
||||
uvedit = sima.uv_editor
|
||||
|
||||
col = layout.column()
|
||||
|
||||
|
||||
@@ -226,7 +226,6 @@ class VIEW3D_PT_tools_particlemode(Panel, View3DPaintPanel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
tool_settings = context.tool_settings
|
||||
settings = self.paint_settings(context)
|
||||
brush = settings.brush
|
||||
tool = settings.tool
|
||||
@@ -280,7 +279,6 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False # No animation.
|
||||
|
||||
tool_settings = context.tool_settings
|
||||
settings = self.paint_settings(context)
|
||||
brush = settings.brush
|
||||
|
||||
@@ -1336,7 +1334,6 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
settings = self.paint_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
|
||||
@@ -1555,6 +1552,7 @@ class VIEW3D_PT_tools_particlemode_options(View3DPanel, Panel):
|
||||
if not pe.is_hair:
|
||||
col.prop(pe, "use_auto_velocity", text="Auto-Velocity")
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_particlemode_options_shapecut(View3DPanel, Panel):
|
||||
"""Default tools for particle mode"""
|
||||
bl_parent_id = "VIEW3D_PT_tools_particlemode_options"
|
||||
@@ -1568,11 +1566,11 @@ class VIEW3D_PT_tools_particlemode_options_shapecut(View3DPanel, Panel):
|
||||
layout.use_property_decorate = False # No animation.
|
||||
|
||||
pe = context.tool_settings.particle_edit
|
||||
ob = pe.object
|
||||
|
||||
layout.prop(pe, "shape_object")
|
||||
layout.operator("particle.shape_cut", text="Cut")
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_particlemode_options_display(View3DPanel, Panel):
|
||||
"""Default tools for particle mode"""
|
||||
bl_parent_id = "VIEW3D_PT_tools_particlemode_options"
|
||||
@@ -1585,7 +1583,6 @@ class VIEW3D_PT_tools_particlemode_options_display(View3DPanel, Panel):
|
||||
layout.use_property_decorate = False # No animation.
|
||||
|
||||
pe = context.tool_settings.particle_edit
|
||||
ob = pe.object
|
||||
|
||||
col = layout.column()
|
||||
col.active = pe.is_editable
|
||||
|
||||
Reference in New Issue
Block a user