[Bf-blender-cvs] [63b8cf45187] master: Cleanup: python enum quoting

Campbell Barton noreply at git.blender.org
Wed Jul 1 06:57:52 CEST 2020


Commit: 63b8cf45187edd5f68486773119c8385ac4bc277
Author: Campbell Barton
Date:   Wed Jul 1 13:11:39 2020 +1000
Branches: master
https://developer.blender.org/rB63b8cf45187edd5f68486773119c8385ac4bc277

Cleanup: python enum quoting

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

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

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

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 54e8fd52ec7..2391678b99b 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1224,10 +1224,10 @@ class _defs_sculpt:
             layout.prop(props, "strength")
             layout.prop(props, "deform_axis")
             layout.prop(props, "use_face_sets")
-            if (props.type == "SURFACE_SMOOTH"):
+            if props.type == 'SURFACE_SMOOTH':
                 layout.prop(props, "surface_smooth_shape_preservation", expand=False)
                 layout.prop(props, "surface_smooth_current_vertex", expand=False)
-            if (props.type == "SHARPEN"):
+            elif props.type == 'SHARPEN':
                 layout.prop(props, "sharpen_smooth_ratio", expand=False)
 
         return dict(
@@ -1263,7 +1263,7 @@ class _defs_sculpt:
         def draw_settings(_context, layout, tool):
             props = tool.operator_properties("sculpt.color_filter")
             layout.prop(props, "type", expand=False)
-            if (props.type == "FILL"):
+            if props.type == 'FILL':
                 layout.prop(props, "fill_color", expand=False)
             layout.prop(props, "strength")



More information about the Bf-blender-cvs mailing list