[Bf-blender-cvs] [cd60843aef8] master: Cleanup: add trailing commas to wrapped args

Campbell Barton noreply at git.blender.org
Sat Apr 13 12:49:23 CEST 2019


Commit: cd60843aef84b1801c9e0ff5c8d63926a20435cd
Author: Campbell Barton
Date:   Sat Apr 13 12:44:34 2019 +0200
Branches: master
https://developer.blender.org/rBcd60843aef84b1801c9e0ff5c8d63926a20435cd

Cleanup: add trailing commas to wrapped args

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

M	release/scripts/startup/bl_ui/properties_physics_cloth.py
M	release/scripts/startup/bl_ui/properties_physics_common.py
M	release/scripts/startup/bl_ui/space_text.py
M	release/scripts/startup/bl_ui/space_topbar.py
M	release/scripts/startup/bl_ui/space_view3d.py

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

diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py
index 1fc3fcdfdb3..f3d84a7acc0 100644
--- a/release/scripts/startup/bl_ui/properties_physics_cloth.py
+++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py
@@ -332,7 +332,7 @@ class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
         col = flow.column()
         col.prop_search(
             cloth, "vertex_group_structural_stiffness", ob, "vertex_groups",
-            text="Structural Group"
+            text="Structural Group",
         )
         col.prop(cloth, "tension_stiffness_max", text="Max Tension")
         col.prop(cloth, "compression_stiffness_max", text="Max Compression")
@@ -342,7 +342,7 @@ class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
         col = flow.column()
         col.prop_search(
             cloth, "vertex_group_shear_stiffness", ob, "vertex_groups",
-            text="Shear Group"
+            text="Shear Group",
         )
         col.prop(cloth, "shear_stiffness_max", text="Max Shearing")
 
diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py
index 965b635418f..11a9b250454 100644
--- a/release/scripts/startup/bl_ui/properties_physics_common.py
+++ b/release/scripts/startup/bl_ui/properties_physics_common.py
@@ -39,13 +39,21 @@ def physics_add(self, layout, md, name, type, typeicon, toggles):
     row = layout.row(align=True)
     if md:
         row.context_pointer_set("modifier", md)
-        row.operator("object.modifier_remove", text=name, text_ctxt=i18n_contexts.default, icon='X')
+        row.operator(
+            "object.modifier_remove",
+            text=name,
+            text_ctxt=i18n_contexts.default,
+            icon='X',
+        )
         if toggles:
             row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
     else:
         row.operator(
-            "object.modifier_add", text=name, text_ctxt=i18n_contexts.default, icon='BLANK1'
+            "object.modifier_add",
+            text=name,
+            text_ctxt=i18n_contexts.default,
+            icon='BLANK1',
         ).type = type
 
 
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index b62e2d740b3..07184c81e42 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -95,7 +95,7 @@ class TEXT_HT_footer(Header):
                 row.label(
                     text="Text: External"
                     if text.library
-                    else "Text: Internal"
+                    else "Text: Internal",
                 )
 
 
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 2e95ccd6db5..7598c6954d5 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -361,7 +361,7 @@ class _draw_left_context_mode:
                 sub.active = settings.use_thickness_curve
                 sub.popover(
                     panel="TOPBAR_PT_gpencil_primitive",
-                    text="Thickness Profile"
+                    text="Thickness Profile",
                 )
 
             if brush.gpencil_tool == 'FILL':
@@ -370,7 +370,7 @@ class _draw_left_context_mode:
                 sub = row.row(align=True)
                 sub.popover(
                     panel="TOPBAR_PT_gpencil_fill",
-                    text="Fill Options"
+                    text="Fill Options",
                 )
 
         @staticmethod
@@ -921,7 +921,7 @@ class TOPBAR_MT_help(Menu):
             "wm.url_open", text="Blender Store", icon='URL',
         ).url = "https://store.blender.org"
         layout.operator(
-            "wm.url_open", text="Development Fund", icon='URL'
+            "wm.url_open", text="Development Fund", icon='URL',
         ).url = "https://fund.blender.org"
         layout.operator(
             "wm.url_open", text="Donate", icon='URL',
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f2ed7922b4f..950dcc71c41 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -113,7 +113,7 @@ class VIEW3D_HT_header(Header):
                 sub.active = gpd.use_multiedit
                 sub.popover(
                     panel="VIEW3D_PT_gpencil_multi_frame",
-                    text="Multiframe"
+                    text="Multiframe",
                 )
 
             if gpd.use_stroke_edit_mode:
@@ -122,7 +122,7 @@ class VIEW3D_HT_header(Header):
 
                 row.popover(
                     panel="VIEW3D_PT_tools_grease_pencil_interpolate",
-                    text="Interpolate"
+                    text="Interpolate",
                 )
 
         VIEW3D_MT_editor_menus.draw_collapsible(context, layout)
@@ -252,7 +252,7 @@ class VIEW3D_HT_header(Header):
                 sub.active = settings.use_guide
                 sub.popover(
                     panel="VIEW3D_PT_gpencil_guide",
-                    text="Guides"
+                    text="Guides",
                 )
 
         layout.separator_spacer()
@@ -4342,7 +4342,7 @@ class VIEW3D_PT_view3d_lock(Panel):
                     view, "lock_bone", lock_object.data,
                     "edit_bones" if lock_object.mode == 'EDIT'
                     else "bones",
-                    text=""
+                    text="",
                 )
         else:
             subcol.prop(view, "lock_cursor", text="Lock to 3D Cursor")
@@ -4671,7 +4671,7 @@ class VIEW3D_PT_shading_options(Panel):
             sub.popover(
                 panel="VIEW3D_PT_shading_options_shadow",
                 icon='PREFERENCES',
-                text=""
+                text="",
             )
 
             col = layout.column()
@@ -4691,7 +4691,7 @@ class VIEW3D_PT_shading_options(Panel):
                     sub.popover(
                         panel="VIEW3D_PT_shading_options_ssao",
                         icon='PREFERENCES',
-                        text=""
+                        text="",
                     )
 
                 if shading.cavity_type in {'SCREEN', 'BOTH'}:



More information about the Bf-blender-cvs mailing list