Cleanup: some variables had unused naming but were used
This commit is contained in:
@@ -3237,7 +3237,7 @@ def km_grease_pencil_stroke_paint_erase(params):
|
||||
return keymap
|
||||
|
||||
|
||||
def km_grease_pencil_stroke_paint_fill(_params):
|
||||
def km_grease_pencil_stroke_paint_fill(params):
|
||||
items = []
|
||||
keymap = (
|
||||
"Grease Pencil Stroke Paint (Fill)",
|
||||
@@ -3258,7 +3258,7 @@ def km_grease_pencil_stroke_paint_fill(_params):
|
||||
("gpencil.draw", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("mode", 'DRAW'), ("wait_for_input", False), ("disable_straight", True), ("disable_fill", True)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": _params.action_tweak, "value": 'ANY', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso", {"type": params.action_tweak, "value": 'ANY', "ctrl": True, "alt": True}, None),
|
||||
])
|
||||
|
||||
return keymap
|
||||
|
||||
@@ -630,9 +630,9 @@ class GPENCIL_MT_gpencil_draw_delete(Menu):
|
||||
class GPENCIL_MT_cleanup(Menu):
|
||||
bl_label = "Clean Up"
|
||||
|
||||
def draw(self, _context):
|
||||
def draw(self, context):
|
||||
|
||||
ob = _context.active_object
|
||||
ob = context.active_object
|
||||
|
||||
layout = self.layout
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ def brush_basic_sculpt_settings(layout, context, brush, *, compact=False):
|
||||
layout.row().prop(brush, "direction", expand=True, **({"text": ""} if compact else {}))
|
||||
|
||||
|
||||
def brush_basic_gpencil_paint_settings(layout, _context, brush, tool, *, compact=True, is_toolbar=False):
|
||||
def brush_basic_gpencil_paint_settings(layout, context, brush, tool, *, compact=True, is_toolbar=False):
|
||||
gp_settings = brush.gpencil_settings
|
||||
|
||||
# Brush details
|
||||
@@ -397,7 +397,7 @@ def brush_basic_gpencil_paint_settings(layout, _context, brush, tool, *, compact
|
||||
row.prop(gp_settings, "show_fill_boundary", text="", icon='GRID')
|
||||
# Fill options
|
||||
if is_toolbar:
|
||||
settings = _context.tool_settings.gpencil_sculpt
|
||||
settings = context.tool_settings.gpencil_sculpt
|
||||
row = layout.row(align=True)
|
||||
sub = row.row(align=True)
|
||||
sub.popover(
|
||||
@@ -429,7 +429,7 @@ def brush_basic_gpencil_paint_settings(layout, _context, brush, tool, *, compact
|
||||
"builtin.circle",
|
||||
"builtin.polyline",
|
||||
}:
|
||||
settings = _context.tool_settings.gpencil_sculpt
|
||||
settings = context.tool_settings.gpencil_sculpt
|
||||
if is_toolbar:
|
||||
row = layout.row(align=True)
|
||||
row.prop(settings, "use_thickness_curve", text="", icon='CURVE_DATA')
|
||||
|
||||
@@ -93,8 +93,8 @@ class GRAPH_MT_editor_menus(Menu):
|
||||
bl_idname = "GRAPH_MT_editor_menus"
|
||||
bl_label = ""
|
||||
|
||||
def draw(self, _context):
|
||||
st = _context.space_data
|
||||
def draw(self, context):
|
||||
st = context.space_data
|
||||
layout = self.layout
|
||||
layout.menu("GRAPH_MT_view")
|
||||
layout.menu("GRAPH_MT_select")
|
||||
|
||||
@@ -70,8 +70,8 @@ class NLA_MT_editor_menus(Menu):
|
||||
bl_idname = "NLA_MT_editor_menus"
|
||||
bl_label = ""
|
||||
|
||||
def draw(self, _context):
|
||||
st = _context.space_data
|
||||
def draw(self, context):
|
||||
st = context.space_data
|
||||
layout = self.layout
|
||||
layout.menu("NLA_MT_view")
|
||||
layout.menu("NLA_MT_select")
|
||||
|
||||
@@ -87,10 +87,10 @@ class TIME_MT_editor_menus(Menu):
|
||||
bl_idname = "TIME_MT_editor_menus"
|
||||
bl_label = ""
|
||||
|
||||
def draw(self, _context):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
horizontal = (layout.direction == 'VERTICAL')
|
||||
st = _context.space_data
|
||||
st = context.space_data
|
||||
if horizontal:
|
||||
row = layout.row()
|
||||
sub = row.row(align=True)
|
||||
|
||||
Reference in New Issue
Block a user