Cleanup: unused variables
This commit is contained in:
@@ -2266,7 +2266,6 @@ class WM_OT_app_template_install(Operator):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
import traceback
|
import traceback
|
||||||
import zipfile
|
import zipfile
|
||||||
import shutil
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
filepath = self.filepath
|
filepath = self.filepath
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class RENDERLAYER_PT_freestyle(RenderLayerFreestyleButtonsPanel, Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.label("Style modules:")
|
row.label("Style modules:")
|
||||||
row.operator("scene.freestyle_module_add", text="Add")
|
row.operator("scene.freestyle_module_add", text="Add")
|
||||||
for i, module in enumerate(freestyle.modules):
|
for module in freestyle.modules:
|
||||||
box = layout.box()
|
box = layout.box()
|
||||||
box.context_pointer_set("freestyle_module", module)
|
box.context_pointer_set("freestyle_module", module)
|
||||||
row = box.row(align=True)
|
row = box.row(align=True)
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ class GPENCIL_MT_pie_settings_palette(Menu):
|
|||||||
gpd = context.gpencil_data
|
gpd = context.gpencil_data
|
||||||
gpl = context.active_gpencil_layer
|
gpl = context.active_gpencil_layer
|
||||||
palcolor = context.active_gpencil_palettecolor
|
palcolor = context.active_gpencil_palettecolor
|
||||||
brush = context.active_gpencil_brush
|
# brush = context.active_gpencil_brush
|
||||||
|
|
||||||
is_editmode = bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
|
is_editmode = bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
|
||||||
|
|
||||||
|
|||||||
@@ -392,7 +392,6 @@ class RENDER_PT_output(RenderButtonsPanel, Panel):
|
|||||||
|
|
||||||
rd = context.scene.render
|
rd = context.scene.render
|
||||||
image_settings = rd.image_settings
|
image_settings = rd.image_settings
|
||||||
file_format = image_settings.file_format
|
|
||||||
|
|
||||||
layout.prop(rd, "filepath", text="")
|
layout.prop(rd, "filepath", text="")
|
||||||
|
|
||||||
|
|||||||
@@ -1808,7 +1808,6 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel):
|
|||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
toolsettings = context.tool_settings
|
toolsettings = context.tool_settings
|
||||||
vpaint = toolsettings.vertex_paint
|
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user