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

This commit is contained in:
2009-10-17 21:08:22 +00:00
parent 69c6a33ba1
commit 13a70d22f9
2 changed files with 11 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ bpy.ops.add(MESH_OT_primitive_torus_add)
# 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()