diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-15 03:43:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-15 03:44:50 +0300 |
commit | d69d811ef93bafe8cba739a69e3937b3646b1d72 (patch) | |
tree | 3fdae808c7a951053c8966e93a39e8c346cb5f6f /release/scripts | |
parent | a8fd3df9051f6e57d552e0b77bbcad6685a2fb9a (diff) |
Cleanup: remove '_' prefix for used arguments
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 28b66119fc6..6bd5532dd68 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1824,7 +1824,7 @@ class VIEW3D_MT_select_edit_armature(Menu): class VIEW3D_MT_select_gpencil(Menu): bl_label = "Select" - def draw(self, _context): + def draw(self, context): layout = self.layout layout.operator("gpencil.select_all", text="All").action = 'SELECT' @@ -1842,7 +1842,7 @@ class VIEW3D_MT_select_gpencil(Menu): layout.operator("gpencil.select_alternate") layout.operator_menu_enum("gpencil.select_grouped", "type", text="Grouped") - if _context.mode == 'VERTEX_GPENCIL': + if context.mode == 'VERTEX_GPENCIL': layout.operator("gpencil.select_vertex_color", text="Vertex Color") layout.separator() @@ -2698,14 +2698,14 @@ class VIEW3D_MT_object_constraints(Menu): class VIEW3D_MT_object_quick_effects(Menu): bl_label = "Quick Effects" - def draw(self, _context): + def draw(self, context): layout = self.layout layout.operator("object.quick_fur") layout.operator("object.quick_explode") layout.operator("object.quick_smoke") layout.operator("object.quick_liquid") - if _context.preferences.experimental.use_new_particle_system: + if context.preferences.experimental.use_new_particle_system: layout.operator("object.quick_particles") @@ -4949,9 +4949,9 @@ class VIEW3D_MT_edit_gpencil(Menu): class VIEW3D_MT_edit_gpencil_stroke(Menu): bl_label = "Stroke" - def draw(self, _context): + def draw(self, context): layout = self.layout - settings = _context.tool_settings.gpencil_sculpt + settings = context.tool_settings.gpencil_sculpt layout.operator("gpencil.stroke_subdivide", text="Subdivide").only_selected = False layout.menu("VIEW3D_MT_gpencil_simplify") |