[Bf-blender-cvs] [dec99c6b682] greasepencil-object: Cleanup style
Antonio Vazquez
noreply at git.blender.org
Fri Oct 20 19:09:51 CEST 2017
Commit: dec99c6b682680f1cab3b6f8631f62d96605e65a
Author: Antonio Vazquez
Date: Fri Oct 20 19:03:35 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBdec99c6b682680f1cab3b6f8631f62d96605e65a
Cleanup style
===================================================================
M release/scripts/startup/bl_ui/properties_material_gpencil.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 61ecfa59a35..16745510c09 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -23,8 +23,6 @@ from bpy.types import Panel, UIList
class GPENCIL_UL_paletteslots(UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
- # assert(isinstance(item, bpy.types.GPencilPaletteSlot)
- # ob = data
slot = item
palette = slot.palette
if self.layout_type in {'DEFAULT', 'COMPACT'}:
@@ -98,9 +96,7 @@ class MATERIAL_PT_gpencil_palette_colors(Panel):
gpd = context.gpencil_data
slot = gpd.active_palette_slot
- #palette = slot.palette
palette = context.active_gpencil_palette
- #assert(slot.palette == palette)
row = layout.row()
row.template_ID(slot, "palette", new="palette.new_gpencil")
More information about the Bf-blender-cvs
mailing list