GPencil: Fix layers topbar panel
authorAntonioya <blendergit@gmail.com>
Sat, 16 Mar 2019 18:21:19 +0000 (19:21 +0100)
committerAntonioya <blendergit@gmail.com>
Sat, 16 Mar 2019 18:21:19 +0000 (19:21 +0100)
After a previous commit to fix the pin panels, this line was not working as expected. As this variable is not used, the line can be removed.

release/scripts/startup/bl_ui/properties_grease_pencil_common.py

index 7749476..ed75e21 100644 (file)
@@ -885,7 +885,6 @@ class GPENCIL_UL_layer(UIList):
     def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
         # assert(isinstance(item, bpy.types.GPencilLayer)
         gpl = item
-        gpd = context.gpencil
 
         if self.layout_type in {'DEFAULT', 'COMPACT'}:
             if gpl.lock: