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>2021-03-06 10:21:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-06 11:26:18 +0300
commit9dc0c44aa102b5a7dae1fe92fd9105231ab1798c (patch)
tree48c79dff7667a799f9c259db681ae498848bc089 /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
parentbd7969159997b8802d54e79a002350a7fb97944d (diff)
Cleanup: unused arguments
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 913fa7ea48a..46c2c24cb6f 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1096,7 +1096,7 @@ class _defs_edit_curve:
@ToolDef.from_fn
def draw():
- def draw_settings(context, layout, tool, *, extra=False):
+ def draw_settings(context, layout, _tool, *, extra=False):
# Tool settings initialize operator options.
tool_settings = context.tool_settings
cps = tool_settings.curve_paint_settings
@@ -1589,7 +1589,7 @@ class _defs_weight_paint:
@ToolDef.from_fn
def sample_weight():
- def draw_settings(context, layout, tool):
+ def draw_settings(context, layout, _tool):
if context.tool_settings.unified_paint_settings.use_unified_weight:
weight = context.tool_settings.unified_paint_settings.weight
elif context.tool_settings.weight_paint.brush:
@@ -1869,7 +1869,7 @@ class _defs_image_uv_sculpt:
class _defs_gpencil_paint:
@staticmethod
- def gpencil_primitive_toolbar(context, layout, tool, props):
+ def gpencil_primitive_toolbar(context, layout, _tool, props):
paint = context.tool_settings.gpencil_paint
brush = paint.brush
@@ -1907,7 +1907,7 @@ class _defs_gpencil_paint:
@ToolDef.from_fn
def cutter():
- def draw_settings(context, layout, tool):
+ def draw_settings(_context, layout, tool):
props = tool.operator_properties("gpencil.stroke_cutter")
row = layout.row()
row.use_property_split = False
@@ -2020,7 +2020,7 @@ class _defs_gpencil_paint:
@ToolDef.from_fn
def eyedropper():
- def draw_settings(context, layout, tool):
+ def draw_settings(_context, layout, tool):
props = tool.operator_properties("ui.eyedropper_gpencil_color")
row = layout.row()
row.use_property_split = False
@@ -2037,7 +2037,7 @@ class _defs_gpencil_paint:
@ToolDef.from_fn
def interpolate():
- def draw_settings(context, layout, tool):
+ def draw_settings(_context, layout, tool):
props = tool.operator_properties("gpencil.interpolate")
layout.prop(props, "layers")
layout.prop(props, "flip")
@@ -2201,7 +2201,7 @@ class _defs_gpencil_edit:
@ToolDef.from_fn
def transform_fill():
- def draw_settings(context, layout, tool):
+ def draw_settings(_context, layout, tool):
props = tool.operator_properties("gpencil.transform_fill")
row = layout.row()
row.use_property_split = False
@@ -2219,7 +2219,7 @@ class _defs_gpencil_edit:
@ToolDef.from_fn
def interpolate():
- def draw_settings(context, layout, tool):
+ def draw_settings(_context, layout, tool):
props = tool.operator_properties("gpencil.interpolate")
layout.prop(props, "layers")
layout.prop(props, "interpolate_selected_only")
@@ -2412,7 +2412,7 @@ class _defs_sequencer_generic:
@ToolDef.from_fn
def sample():
def draw_settings(_context, layout, tool):
- tool.operator_properties("sequencer.sample")
+ props = tool.operator_properties("sequencer.sample")
return dict(
idname="builtin.sample",
label="Sample",