[Bf-blender-cvs] [e65643b9a3e] blender2.8: Cleanup: style
Campbell Barton
noreply at git.blender.org
Sat May 19 16:27:01 CEST 2018
Commit: e65643b9a3e90866b05f032fec1bc05f7d6ac999
Author: Campbell Barton
Date: Sat May 19 16:25:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe65643b9a3e90866b05f032fec1bc05f7d6ac999
Cleanup: style
No need to use text keyword arg for labels
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 3683eea9128..4889f0886f4 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -163,7 +163,6 @@ class TOPBAR_HT_lower_bar(Header):
elif mode == 'PARTICLE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".paint_common", category="")
-
def draw_right(self, context):
layout = self.layout
@@ -207,7 +206,7 @@ class TOPBAR_HT_lower_bar(Header):
region_type='HEADER',
panel_type="TOPBAR_PT_pivot_point",
icon=act_pivot_point.icon,
- text=""
+ text="",
)
if obj:
@@ -348,16 +347,17 @@ class TOPBAR_PT_pivot_point(Panel):
layout = self.layout
col = layout.column()
- col.label(text="Pivot Point")
+ col.label("Pivot Point")
col.prop(toolsettings, "transform_pivot_point", expand=True)
col.separator()
if (obj is None) or (mode in {'OBJECT', 'POSE', 'WEIGHT_PAINT'}):
col.prop(
- toolsettings,
- "use_transform_pivot_point_align",
- text="Center Points Only")
+ toolsettings,
+ "use_transform_pivot_point_align",
+ text="Center Points Only",
+ )
class TOPBAR_PT_snapping(Panel):
@@ -374,7 +374,7 @@ class TOPBAR_PT_snapping(Panel):
layout = self.layout
col = layout.column()
- col.label(text="Snapping")
+ col.label("Snapping")
col.prop(toolsettings, "snap_element", expand=True)
col.separator()
@@ -382,7 +382,7 @@ class TOPBAR_PT_snapping(Panel):
if snap_element == 'INCREMENT':
col.prop(toolsettings, "use_snap_grid_absolute")
else:
- col.label(text="Target")
+ col.label("Target")
row = col.row(align=True)
row.prop(toolsettings, "snap_target", expand=True)
More information about the Bf-blender-cvs
mailing list