diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-06 10:21:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-06 11:26:18 +0300 |
commit | 9dc0c44aa102b5a7dae1fe92fd9105231ab1798c (patch) | |
tree | 48c79dff7667a799f9c259db681ae498848bc089 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | bd7969159997b8802d54e79a002350a7fb97944d (diff) |
Cleanup: unused arguments
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 725075fb143..83ab5bf3100 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1488,7 +1488,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel): brush = context.tool_settings.gpencil_paint.brush return brush is not None and brush.gpencil_tool == 'DRAW' - def draw(self, context): + def draw(self, _context): # layout = self.layout pass @@ -1847,7 +1847,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_weight_falloff(GreasePencilBrushFallof ts = context.tool_settings settings = ts.gpencil_weight_paint brush = settings.brush - return (brush and brush.curve) + return (settings and settings.brush and settings.brush.curve) # Grease Pencil vertex painting tools @@ -1939,6 +1939,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_vertex_color(View3DPanel, Panel): ts = context.tool_settings settings = ts.gpencil_vertex_paint brush = settings.brush + gp_settings = brush.gpencil_settings col = layout.column() |