diff options
author | Thomas Dinges <blender@dingto.org> | 2013-10-14 02:26:53 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-10-14 02:26:53 +0400 |
commit | 56e326caf1eb912246957b5a4e4b0d3e177b4225 (patch) | |
tree | 3b85f779b13dd34a5db707d040948b8bb036e43e /release/scripts/startup/bl_ui/properties_data_mesh.py | |
parent | ee63ef7af17cb793d9c6947e6f47de7c36df58af (diff) |
Properties Editor / Mesh Data:
* Give the uiLists a default size of 1, when we don't have any element in it. This saves some space.
Vertex Groups and Shape Keys list will jump to 5 as before when we have an element, due to the additional buttons, for the others, just grow with additional elements.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index a703222ecd0..b04d91b0fc9 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -191,7 +191,7 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel): ob = context.object group = ob.vertex_groups.active - rows = 2 + rows = 1 if group: rows = 5 @@ -250,7 +250,7 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel): row = layout.row() - rows = 2 + rows = 1 if kb: rows = 5 row.template_list("MESH_UL_shape_keys", "", key, "key_blocks", ob, "active_shape_key_index", rows=rows) @@ -329,17 +329,17 @@ class DATA_PT_uv_texture(MeshButtonsPanel, Panel): layout = self.layout me = context.mesh + lay = me.uv_textures.active row = layout.row() col = row.column() - col.template_list("MESH_UL_uvmaps_vcols", "uvmaps", me, "uv_textures", me.uv_textures, "active_index", rows=2) + col.template_list("MESH_UL_uvmaps_vcols", "uvmaps", me, "uv_textures", me.uv_textures, "active_index", rows=1) col = row.column(align=True) col.operator("mesh.uv_texture_add", icon='ZOOMIN', text="") col.operator("mesh.uv_texture_remove", icon='ZOOMOUT', text="") - - lay = me.uv_textures.active + if lay: layout.prop(lay, "name") @@ -352,17 +352,17 @@ class DATA_PT_vertex_colors(MeshButtonsPanel, Panel): layout = self.layout me = context.mesh + lay = me.vertex_colors.active row = layout.row() col = row.column() - col.template_list("MESH_UL_uvmaps_vcols", "vcols", me, "vertex_colors", me.vertex_colors, "active_index", rows=2) + col.template_list("MESH_UL_uvmaps_vcols", "vcols", me, "vertex_colors", me.vertex_colors, "active_index", rows=1) col = row.column(align=True) col.operator("mesh.vertex_color_add", icon='ZOOMIN', text="") col.operator("mesh.vertex_color_remove", icon='ZOOMOUT', text="") - - lay = me.vertex_colors.active + if lay: layout.prop(lay, "name") |