Revision: 23909
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23909
Author:   billrey
Date:     2009-10-17 23:08:22 +0200 (Sat, 17 Oct 2009)

Log Message:
-----------
Added torus icon to the add menu, and made naming consistent with the other add 
menus. 

Modified Paths:
--------------
    trunk/blender/release/scripts/io/add_mesh_torus.py
    trunk/blender/release/scripts/ui/space_info.py

Modified: trunk/blender/release/scripts/io/add_mesh_torus.py
===================================================================
--- trunk/blender/release/scripts/io/add_mesh_torus.py  2009-10-17 19:32:28 UTC 
(rev 23908)
+++ trunk/blender/release/scripts/io/add_mesh_torus.py  2009-10-17 21:08:22 UTC 
(rev 23909)
@@ -92,7 +92,7 @@
 # Add to a menu
 import dynamic_menu
 import space_info
-menu_item = dynamic_menu.add(bpy.types.INFO_MT_mesh_add, (lambda self, 
context: self.layout.itemO("mesh.primitive_torus_add", text="Add Torus")) )
+menu_item = dynamic_menu.add(bpy.types.INFO_MT_mesh_add, (lambda self, 
context: self.layout.itemO("mesh.primitive_torus_add", text="Torus", 
icon='ICON_MESH_DONUT')) )
 
 if __name__ == "__main__":
        bpy.ops.mesh.primitive_torus_add()
\ No newline at end of file

Modified: trunk/blender/release/scripts/ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/ui/space_info.py      2009-10-17 19:32:28 UTC 
(rev 23908)
+++ trunk/blender/release/scripts/ui/space_info.py      2009-10-17 21:08:22 UTC 
(rev 23909)
@@ -124,20 +124,20 @@
 
 
 class INFO_MT_mesh_add(dynamic_menu.DynMenu):
-       __label__ = "Add Mesh"
+       __label__ = "Mesh"
        def draw(self, context):
                layout = self.layout
                layout.operator_context = 'INVOKE_REGION_WIN'
-               layout.itemO("mesh.primitive_plane_add", icon='ICON_MESH_PLANE')
-               layout.itemO("mesh.primitive_cube_add", icon='ICON_MESH_CUBE')
-               layout.itemO("mesh.primitive_circle_add", 
icon='ICON_MESH_CIRCLE')
-               layout.itemO("mesh.primitive_uv_sphere_add", 
icon='ICON_MESH_UVSPHERE')
-               layout.itemO("mesh.primitive_ico_sphere_add", 
icon='ICON_MESH_ICOSPHERE')
-               layout.itemO("mesh.primitive_cylinder_add", 
icon='ICON_MESH_TUBE')
-               layout.itemO("mesh.primitive_cone_add", icon='ICON_MESH_CONE')
+               layout.itemO("mesh.primitive_plane_add", 
icon='ICON_MESH_PLANE', text="Plane")
+               layout.itemO("mesh.primitive_cube_add", icon='ICON_MESH_CUBE', 
text="Cube")
+               layout.itemO("mesh.primitive_circle_add", 
icon='ICON_MESH_CIRCLE', text="Circle")
+               layout.itemO("mesh.primitive_uv_sphere_add", 
icon='ICON_MESH_UVSPHERE', text="UV Sphere")
+               layout.itemO("mesh.primitive_ico_sphere_add", 
icon='ICON_MESH_ICOSPHERE', text="Icosphere")
+               layout.itemO("mesh.primitive_cylinder_add", 
icon='ICON_MESH_TUBE', text="Tube")
+               layout.itemO("mesh.primitive_cone_add", icon='ICON_MESH_CONE', 
text="Cone")
                layout.itemS()
-               layout.itemO("mesh.primitive_grid_add", icon='ICON_MESH_GRID')
-               layout.itemO("mesh.primitive_monkey_add", 
icon='ICON_MESH_MONKEY')
+               layout.itemO("mesh.primitive_grid_add", icon='ICON_MESH_GRID', 
text="Grid")
+               layout.itemO("mesh.primitive_monkey_add", 
icon='ICON_MESH_MONKEY', text="Monkey")
 
 class INFO_MT_add(bpy.types.Menu):
        __label__ = "Add"


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to