[Bf-blender-cvs] [5b72bb108db] temp-outliner-library-override-hierarchy: Cleanup: follow Python code-style/conventions

Campbell Barton noreply at git.blender.org
Fri Mar 25 14:17:19 CET 2022


Commit: 5b72bb108db811ebc1b4f74266ae4ec4db39f97b
Author: Campbell Barton
Date:   Wed Mar 23 11:59:56 2022 +1100
Branches: temp-outliner-library-override-hierarchy
https://developer.blender.org/rB5b72bb108db811ebc1b4f74266ae4ec4db39f97b

Cleanup: follow Python code-style/conventions

===================================================================

M	release/scripts/startup/bl_ui/space_userpref.py
M	release/scripts/startup/bl_ui/space_view3d.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

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)



More information about the Bf-blender-cvs mailing list