Commit: 310a1f728cf4ab3ca50f40c62e4ff4f4b280d62b
Author: Campbell Barton
Date:   Wed Mar 20 10:26:53 2019 +1100
Branches: master
https://developer.blender.org/rB310a1f728cf4ab3ca50f40c62e4ff4f4b280d62b

Cleanup: unused vars

===================================================================

M       release/scripts/startup/bl_operators/object.py
M       release/scripts/startup/bl_operators/wm.py
M       release/scripts/startup/bl_ui/properties_data_modifier.py
M       release/scripts/startup/bl_ui/properties_paint_common.py
M       release/scripts/startup/bl_ui/space_image.py
M       release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/object.py 
b/release/scripts/startup/bl_operators/object.py
index 65490e5f659..22da314aea5 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -905,7 +905,6 @@ class LoadImageAsEmpty:
 
     def execute(self, context):
         scene = context.scene
-        space = context.space_data
         cursor = scene.cursor.location
 
         try:
diff --git a/release/scripts/startup/bl_operators/wm.py 
b/release/scripts/startup/bl_operators/wm.py
index 9e0e090fb28..6bda41ba837 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -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]
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py 
b/release/scripts/startup/bl_ui/properties_data_modifier.py
index d08cb0ac41f..b047bbdcfec 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -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")
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py 
b/release/scripts/startup/bl_ui/properties_paint_common.py
index 913643f6d84..0664c407ab3 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -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)
 
diff --git a/release/scripts/startup/bl_ui/space_image.py 
b/release/scripts/startup/bl_ui/space_image.py
index aa782278071..de0b6f8cc1d 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -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()
 
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py 
b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 0d660c2efb3..a358233a5d0 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -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

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to