This commit is contained in:
2010-03-31 20:39:08 +00:00
parent 3c6a0274b9
commit c19725b266
8 changed files with 188 additions and 14 deletions

View File

@@ -154,9 +154,8 @@ class AddTorus(bpy.types.Operator):
return {'FINISHED'}
# Add to the menu
menu_func = (lambda self, context: self.layout.operator(AddTorus.bl_idname,
text="Torus", icon='MESH_DONUT'))
def menu_func(self, context):
self.layout.operator(AddTorus.bl_idname, text="Torus", icon='MESH_DONUT')
def register():