[Bf-blender-cvs] [e2b78f68a89] greasepencil-object: Cleanup: Remove unused code

Joshua Leung noreply at git.blender.org
Tue Mar 20 08:14:55 CET 2018


Commit: e2b78f68a89a01cf3840d3497842d7731ec7ee63
Author: Joshua Leung
Date:   Tue Mar 20 17:12:36 2018 +1300
Branches: greasepencil-object
https://developer.blender.org/rBe2b78f68a89a01cf3840d3497842d7731ec7ee63

Cleanup: Remove unused code

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

M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py

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

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 257944f9433..f943e5612d4 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -685,19 +685,6 @@ class GPENCIL_MT_gpencil_vertex_group(Menu):
             layout.operator("gpencil.vertex_group_deselect", text="Deselect Points")
 
 
-class GPENCIL_UL_brush(UIList):
-    def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
-        # assert(isinstance(item, bpy.types.GPencilBrush)
-        brush = item
-
-        if self.layout_type in {'DEFAULT', 'COMPACT'}:
-            row = layout.row(align=True)
-            row.prop(brush, "name", text="", emboss=False, icon='BRUSH_DATA')
-        elif self.layout_type == 'GRID':
-            layout.alignment = 'CENTER'
-            layout.label(text="", icon_value=icon)
-
-
 class GPENCIL_UL_palettecolor(UIList):
     def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
         # assert(isinstance(item, bpy.types.PaletteColor)
@@ -1331,7 +1318,6 @@ classes = (
     GPENCIL_MT_gpencil_sculpt_specials,
     GPENCIL_MT_gpencil_draw_specials,
     GPENCIL_MT_gpencil_vertex_group,
-    GPENCIL_UL_brush,
     GPENCIL_UL_palettecolor,
     GPENCIL_UL_layer,
     GPENCIL_MT_layer_specials,



More information about the Bf-blender-cvs mailing list