Cleanup: style

No need to use text keyword arg for labels
This commit is contained in:
Campbell Barton 2018-05-19 16:25:20 +02:00
parent 7cbf5db248
commit e65643b9a3
Notes: blender-bot 2023-02-14 05:51:21 +01:00
Referenced by issue #55126, COW problem: there is an active object even if unselectable
1 changed files with 8 additions and 8 deletions

View File

@ -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)