diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-30 09:31:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-30 09:31:57 +0400 |
commit | 6e479b18ef088251d0124a4a95c020fb2e579afd (patch) | |
tree | e0ef840498f43f7b9a3e014df78492e43f4f6a78 /release/scripts | |
parent | 5f47f1370e63a54a98e7cce5b5aee91da1214aae (diff) |
Code cleanup: remove (now) redundant empty text with icon_only
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render_layer.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_clip.py | 8 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 14 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 10 |
6 files changed, 19 insertions, 19 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render_layer.py b/release/scripts/startup/bl_ui/properties_render_layer.py index 4444d8728eb..488f0416880 100644 --- a/release/scripts/startup/bl_ui/properties_render_layer.py +++ b/release/scripts/startup/bl_ui/properties_render_layer.py @@ -64,7 +64,7 @@ class RENDERLAYER_PT_layers(RenderLayerButtonsPanel, Panel): sub = col.column(align=True) sub.operator("scene.render_layer_add", icon='ZOOMIN', text="") sub.operator("scene.render_layer_remove", icon='ZOOMOUT', text="") - col.prop(rd, "use_single_layer", text="", icon_only=True) + col.prop(rd, "use_single_layer", icon_only=True) class RENDERLAYER_PT_layer_options(RenderLayerButtonsPanel, Panel): diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 901e2320e1a..ee6ddc87f36 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -63,7 +63,7 @@ class CLIP_HT_header(Header): if sc.view == 'CLIP': layout.prop(sc, "mode", text="") layout.prop(sc, "view", text="", expand=True) - layout.prop(sc, "pivot_point", text="", icon_only=True) + layout.prop(sc, "pivot_point", icon_only=True) r = active_object.reconstruction @@ -127,14 +127,14 @@ class CLIP_HT_header(Header): row = layout.row() row.template_ID(sc, "mask", new="mask.new") - layout.prop(sc, "pivot_point", text="", icon_only=True) + layout.prop(sc, "pivot_point", icon_only=True) row = layout.row(align=True) row.prop(toolsettings, "use_proportional_edit_mask", - text="", icon_only=True) + icon_only=True) if toolsettings.use_proportional_edit_mask: row.prop(toolsettings, "proportional_edit_falloff", - text="", icon_only=True) + icon_only=True) def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 775f398bc78..e4fb53805b6 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -47,7 +47,7 @@ class GRAPH_HT_header(Header): row.prop(st, "use_auto_normalization", text="Auto") layout.prop(st, "auto_snap", text="") - layout.prop(st, "pivot_point", text="", icon_only=True) + layout.prop(st, "pivot_point", icon_only=True) row = layout.row(align=True) row.operator("graph.copy", text="", icon='COPYDOWN') diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 5c221412d43..fdc5be4db8d 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -386,7 +386,7 @@ class IMAGE_HT_header(Header): row.template_ID(sima, "mask", new="mask.new") if show_uvedit or show_maskedit: - layout.prop(sima, "pivot_point", text="", icon_only=True) + layout.prop(sima, "pivot_point", icon_only=True) # uv editing if show_uvedit: @@ -398,16 +398,16 @@ class IMAGE_HT_header(Header): layout.template_edit_mode_selection() else: layout.prop(toolsettings, "uv_select_mode", text="", expand=True) - layout.prop(uvedit, "sticky_select_mode", text="", icon_only=True) + layout.prop(uvedit, "sticky_select_mode", icon_only=True) row = layout.row(align=True) - row.prop(toolsettings, "proportional_edit", text="", icon_only=True) + row.prop(toolsettings, "proportional_edit", icon_only=True) if toolsettings.proportional_edit != 'DISABLED': - row.prop(toolsettings, "proportional_edit_falloff", text="", icon_only=True) + row.prop(toolsettings, "proportional_edit_falloff", icon_only=True) row = layout.row(align=True) row.prop(toolsettings, "use_snap", text="") - row.prop(toolsettings, "snap_uv_element", text="", icon_only=True) + row.prop(toolsettings, "snap_uv_element", icon_only=True) if toolsettings.snap_uv_element != 'INCREMENT': row.prop(toolsettings, "snap_target", text="") @@ -429,7 +429,7 @@ class IMAGE_HT_header(Header): row.operator("image.play_composite", icon='PLAY') if show_uvedit or show_maskedit or mode == 'PAINT': - layout.prop(sima, "use_realtime_update", text="", icon_only=True, icon='LOCKED') + layout.prop(sima, "use_realtime_update", icon_only=True, icon='LOCKED') class MASK_MT_editor_menus(Menu): @@ -566,7 +566,7 @@ class IMAGE_PT_view_waveform(Panel): layout.template_waveform(sima, "scopes") row = layout.split(percentage=0.75) row.prop(sima.scopes, "waveform_alpha") - row.prop(sima.scopes, "waveform_mode", text="", icon_only=True) + row.prop(sima.scopes, "waveform_mode", icon_only=True) class IMAGE_PT_view_vectorscope(Panel): diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index a91c9a31769..830bdf92ecc 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -100,7 +100,7 @@ class NODE_HT_header(Header): # Snap row = layout.row(align=True) row.prop(toolsettings, "use_snap", text="") - row.prop(toolsettings, "snap_node_element", text="", icon_only=True) + row.prop(toolsettings, "snap_node_element", icon_only=True) if toolsettings.snap_node_element != 'GRID': row.prop(toolsettings, "snap_target", text="") diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 062345103ef..1ebe9aa0f8a 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -59,21 +59,21 @@ class VIEW3D_HT_header(Header): # Proportional editing if mode in {'EDIT', 'PARTICLE_EDIT'}: row = layout.row(align=True) - row.prop(toolsettings, "proportional_edit", text="", icon_only=True) + row.prop(toolsettings, "proportional_edit", icon_only=True) if toolsettings.proportional_edit != 'DISABLED': - row.prop(toolsettings, "proportional_edit_falloff", text="", icon_only=True) + row.prop(toolsettings, "proportional_edit_falloff", icon_only=True) elif mode == 'OBJECT': row = layout.row(align=True) - row.prop(toolsettings, "use_proportional_edit_objects", text="", icon_only=True) + row.prop(toolsettings, "use_proportional_edit_objects", icon_only=True) if toolsettings.use_proportional_edit_objects: - row.prop(toolsettings, "proportional_edit_falloff", text="", icon_only=True) + row.prop(toolsettings, "proportional_edit_falloff", icon_only=True) # Snap if not obj or mode not in {'SCULPT', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT'}: snap_element = toolsettings.snap_element row = layout.row(align=True) row.prop(toolsettings, "use_snap", text="") - row.prop(toolsettings, "snap_element", text="", icon_only=True) + row.prop(toolsettings, "snap_element", icon_only=True) if snap_element != 'INCREMENT': row.prop(toolsettings, "snap_target", text="") if obj: |