Cleanup: unused vars
authorCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 05:52:53 +0000 (07:52 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 05:52:53 +0000 (07:52 +0200)
release/scripts/startup/bl_ui/properties_paint_common.py
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index a955f6b..6ceebff 100644 (file)
@@ -165,8 +165,6 @@ def brush_texpaint_common_clone(_panel, context, layout, _brush, settings, _proj
 
 
 def brush_texpaint_common_color(_panel, context, layout, brush, _settings, _projpaint=False):
-    capabilities = brush.image_paint_capabilities
-
     UnifiedPaintPanel.prop_unified_color_picker(layout, context, brush, "color", value_slider=True)
 
     row = layout.row(align=True)
@@ -344,7 +342,6 @@ def brush_basic_texpaint_settings(layout, context, brush, *, compact=False):
 def brush_basic_sculpt_settings(layout, context, brush, *, compact=False):
     tool_settings = context.tool_settings
     capabilities = brush.sculpt_capabilities
-    settings = tool_settings.gpencil_sculpt
 
     row = layout.row(align=True)
 
index 39a5db6..edde8f5 100644 (file)
@@ -32,7 +32,6 @@ from .space_toolsystem_common import (
     ToolDef,
 )
 
-from bpy.app.translations import pgettext_iface as iface_
 from bpy.app.translations import pgettext_tip as tip_
 
 
index a4b96b7..e04e128 100644 (file)
@@ -44,10 +44,8 @@ class VIEW3D_HT_tool_header(Header):
         layout.row(align=True).template_header()
 
         view = context.space_data
-        shading = view.shading
         # mode_string = context.mode
         obj = context.active_object
-        overlay = view.overlay
         tool_settings = context.tool_settings
 
         object_mode = 'OBJECT' if obj is None else obj.mode
@@ -5130,7 +5128,6 @@ class VIEW3D_PT_gizmo_display(Panel):
 
         scene = context.scene
         view = context.space_data
-        overlay = view.overlay
 
         col = layout.column()
         col.label(text="Viewport Gizmos")
index dc9c076..9cea53a 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Menu, Panel, UIList
 from .properties_grease_pencil_common import (
     GreasePencilStrokeEditPanel,