Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-19 08:32:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-19 08:32:24 +0300
commit5b0f0421ef1d841d7389b504057dbf76998007c7 (patch)
tree01fd941322922ad06a24b7179b52c66ac3a4d2ad /release/scripts/startup/bl_ui/properties_material_gpencil.py
parent9573bf432c4b06d940b4b38cc455826f47518884 (diff)
Cleanup: mark unused arguments in UI scripts
Quiet's pylint W0613 warning, also remove some unused args.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material_gpencil.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_material_gpencil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 51ad691f1d7..3ba18049a2e 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -30,7 +30,7 @@ from .properties_grease_pencil_common import (
class GPENCIL_MT_color_context_menu(Menu):
bl_label = "Layer"
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.operator("gpencil.color_reveal", icon='RESTRICT_VIEW_OFF', text="Show All")
@@ -46,7 +46,7 @@ class GPENCIL_MT_color_context_menu(Menu):
class GPENCIL_UL_matslots(UIList):
- def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
+ def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
slot = item
ma = slot.material
if (ma is not None) and (ma.grease_pencil is not None):
@@ -104,10 +104,10 @@ class MATERIAL_PT_gpencil_slots(GreasePencilMaterialsPanel, Panel):
class MATERIAL_PT_gpencil_surface(GPMaterialButtonsPanel, Panel):
bl_label = "Surface"
- def draw_header_preset(self, context):
+ def draw_header_preset(self, _context):
MATERIAL_PT_gpencil_material_presets.draw_panel_header(self.layout)
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.use_property_split = True