[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60735] trunk/blender/release/scripts/ startup/bl_ui/properties_data_mesh.py: Properties Editor / Mesh Data:

Sergey Sharybin sergey.vfx at gmail.com
Mon Oct 14 19:24:17 CEST 2013


Not actually sure why exactly this helps. Especially for the lists which
could have lots of items in them and which are in collapsed panel anyway?


On Mon, Oct 14, 2013 at 12:26 AM, Thomas Dinges <blender at dingto.org> wrote:

> Revision: 60735
>
> http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60735
> Author:   dingto
> Date:     2013-10-13 22:26:53 +0000 (Sun, 13 Oct 2013)
> Log Message:
> -----------
> 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.
>
> Modified Paths:
> --------------
>     trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
>
> Modified:
> trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
> ===================================================================
> --- trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
> 2013-10-13 20:59:55 UTC (rev 60734)
> +++ trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
> 2013-10-13 22:26:53 UTC (rev 60735)
> @@ -191,7 +191,7 @@
>          ob = context.object
>          group = ob.vertex_groups.active
>
> -        rows = 2
> +        rows = 1
>          if group:
>              rows = 5
>
> @@ -250,7 +250,7 @@
>
>          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 @@
>          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 @@
>          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")
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



-- 
With best regards, Sergey Sharybin


More information about the Bf-committers mailing list