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:
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py16
1 files changed, 8 insertions, 8 deletions
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 6e1253df968..1fd106fbe35 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -85,7 +85,7 @@ class AnnotationDrawingToolsPanel:
bl_region_type = 'TOOLS'
@classmethod
- def poll(cls, context):
+ def poll(cls, _context):
return True
def draw(self, context):
@@ -510,7 +510,7 @@ class GPENCIL_MT_pie_tools_more(Menu):
gpd = context.gpencil_data
return bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
pie = layout.menu_pie()
@@ -586,7 +586,7 @@ class GPENCIL_MT_pie_sculpt(Menu):
class GPENCIL_MT_snap(Menu):
bl_label = "Snap"
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.operator("gpencil.snap_to_grid", text="Selection to Grid")
@@ -603,7 +603,7 @@ class GPENCIL_MT_snap(Menu):
class GPENCIL_MT_separate(Menu):
bl_label = "Separate"
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.operator("gpencil.stroke_separate", text="Selected Points").mode = 'POINT'
layout.operator("gpencil.stroke_separate", text="Selected Strokes").mode = 'STROKE'
@@ -613,7 +613,7 @@ class GPENCIL_MT_separate(Menu):
class GPENCIL_MT_gpencil_draw_delete(Menu):
bl_label = "GPencil Draw Delete"
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.operator_context = 'INVOKE_REGION_WIN'
@@ -624,7 +624,7 @@ class GPENCIL_MT_gpencil_draw_delete(Menu):
class GPENCIL_MT_cleanup(Menu):
bl_label = "Clean Up"
- def draw(self, context):
+ def draw(self, _context):
layout = self.layout
layout.operator("gpencil.frame_clean_loose", text="Loose Points")
layout.separator()
@@ -637,7 +637,7 @@ class GPENCIL_MT_cleanup(Menu):
class GPENCIL_UL_annotation_layer(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):
# assert(isinstance(item, bpy.types.GPencilLayer)
gpl = item
@@ -892,7 +892,7 @@ class GreasePencilMaterialsPanel:
class GPENCIL_UL_layer(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):
# assert(isinstance(item, bpy.types.GPencilLayer)
gpl = item