[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53718] trunk/blender/release/scripts/ startup/bl_ui/properties_data_mesh.py: Fix [#33825] Menu list widget does not work on UV and Vertex Colors

Bastien Montagne montagne29 at wanadoo.fr
Thu Jan 10 19:54:02 CET 2013


Revision: 53718
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53718
Author:   mont29
Date:     2013-01-10 18:54:01 +0000 (Thu, 10 Jan 2013)
Log Message:
-----------
Fix [#33825] Menu list widget does not work on UV and Vertex Colors

Own stupid mistake in recent UI list refactor - those two lists are a good example where a non-void 'id' is necessary, as they use the same class in the same window... Else, the same object is shared by the two, which can't work! :)

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-01-10 18:34:09 UTC (rev 53717)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py	2013-01-10 18:54:01 UTC (rev 53718)
@@ -330,7 +330,7 @@
         row = layout.row()
         col = row.column()
 
-        col.template_list("MESH_UL_uvmaps_vcols", "", 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=2)
 
         col = row.column(align=True)
         col.operator("mesh.uv_texture_add", icon='ZOOMIN', text="")
@@ -353,7 +353,7 @@
         row = layout.row()
         col = row.column()
 
-        col.template_list("MESH_UL_uvmaps_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=2)
 
         col = row.column(align=True)
         col.operator("mesh.vertex_color_add", icon='ZOOMIN', text="")




More information about the Bf-blender-cvs mailing list