From 6bb28a1a524060eca8d20dff8f72e1d4bbc7d938 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 23 Mar 2022 11:59:56 +1100 Subject: Cleanup: follow Python code-style/conventions --- release/scripts/startup/bl_ui/space_userpref.py | 1 + release/scripts/startup/bl_ui/space_view3d.py | 7 +++---- release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 29106b25a1a..5fcb573b583 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -461,6 +461,7 @@ class USERPREF_PT_edit_weight_paint(EditingPanel, CenterAlignMixIn, Panel): col.active = view.use_weight_color_range col.template_color_ramp(view, "weight_color_range", expand=True) + class USERPREF_PT_edit_text_editor(EditingPanel, CenterAlignMixIn, Panel): bl_label = "Text Editor" bl_options = {'DEFAULT_CLOSED'} diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 45b0033e133..70bc14dbc2b 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -492,7 +492,7 @@ class _draw_tool_settings_context_mode: header=True ) - if brush.curves_sculpt_tool not in ("ADD", "DELETE"): + if brush.curves_sculpt_tool not in {'ADD', 'DELETE'}: UnifiedPaintPanel.prop_unified( layout, context, @@ -502,7 +502,7 @@ class _draw_tool_settings_context_mode: header=True ) - if brush.curves_sculpt_tool == "ADD": + if brush.curves_sculpt_tool == 'ADD': layout.prop(brush, "use_frontface") layout.prop(brush, "falloff_shape", expand=True) layout.prop(brush.curves_sculpt_settings, "add_amount") @@ -510,11 +510,10 @@ class _draw_tool_settings_context_mode: layout.prop(tool_settings.curves_sculpt, "interpolate_length") layout.prop(tool_settings.curves_sculpt, "interpolate_shape") - if brush.curves_sculpt_tool == "TEST1": + if brush.curves_sculpt_tool == 'TEST1': layout.prop(tool_settings.curves_sculpt, "distance") - class VIEW3D_HT_header(Header): bl_space_type = 'VIEW_3D' diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index f9d3c988a22..df07fbb3198 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -675,7 +675,7 @@ class VIEW3D_PT_tools_brush_stroke_smooth_stroke(Panel, View3DPaintPanel, Smooth class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel): # dont give context on purpose to not show this in the generic header toolsettings # this is added only in the gradient tool's ToolDef - #bl_context = ".weightpaint" # dot on purpose (access from topbar) + # bl_context = ".weightpaint" # dot on purpose (access from topbar) bl_label = "Falloff" bl_options = {'DEFAULT_CLOSED'} # also dont draw as an extra panel in the sidebar (already included in the Brush settings) -- cgit v1.2.3