~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to release/scripts/addons/add_mesh_extra_objects/__init__.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    imp.reload(add_mesh_polysphere)
44
44
    imp.reload(add_mesh_supertoroid)
45
45
    imp.reload(add_mesh_pyramid)
 
46
    imp.reload(add_mesh_torusknot)
 
47
    imp.reload(add_mesh_honeycomb)
 
48
    imp.reload(add_mesh_teapot)
46
49
else:
47
50
    from . import add_mesh_extra_objects
48
51
    from . import add_mesh_twisted_torus
52
55
    from . import add_mesh_polysphere
53
56
    from . import add_mesh_supertoroid
54
57
    from . import add_mesh_pyramid
 
58
    from . import add_mesh_torusknot
 
59
    from . import add_mesh_honeycomb
 
60
    from . import add_mesh_teapot
55
61
import bpy
56
62
 
57
63
 
67
73
        layout.menu("INFO_MT_mesh_gears_add", text="Gears")
68
74
        layout.menu("INFO_MT_mesh_math_add", text="Math Function")
69
75
        layout.menu("INFO_MT_mesh_basic_add", text="Basic Objects")
70
 
        layout.operator("mesh.primitive_twisted_torus_add",
71
 
            text="Twisted Torus")
72
 
        layout.operator("mesh.primitive_polysphere_add",
73
 
            text="Polysphere")
74
 
        layout.operator("mesh.primitive_supertoroid_add",
75
 
            text="Supertoroid")
76
 
        layout.operator("mesh.primitive_steppyramid_add",
77
 
            text="Pyramid")
 
76
        layout.menu("INFO_MT_mesh_torus_add", text="Torus Objects")
 
77
        layout.menu("INFO_MT_mesh_misc_add", text="Misc Objects")
78
78
 
79
79
class INFO_MT_mesh_gemstones_add(bpy.types.Menu):
80
80
    # Define the "Gemstones" menu
131
131
            text="Star")
132
132
        layout.operator("mesh.primitive_trapezohedron_add",
133
133
            text="Trapezohedron")
134
 
 
 
134
        layout.operator("mesh.primitive_polysphere_add",
 
135
            text="Polysphere")
 
136
                        
 
137
class INFO_MT_mesh_torus_add(bpy.types.Menu):
 
138
    # Define the "Simple Objects" menu
 
139
    bl_idname = "INFO_MT_mesh_torus_add"
 
140
    bl_label = "Torus Objects"
 
141
 
 
142
    def draw(self, context):
 
143
        layout = self.layout
 
144
        layout.operator_context = 'INVOKE_REGION_WIN'
 
145
        layout.operator("mesh.primitive_twisted_torus_add",
 
146
            text="Twisted Torus")
 
147
        layout.operator("mesh.primitive_supertoroid_add",
 
148
            text="Supertoroid")
 
149
        layout.operator("mesh.primitive_torusknot_add",
 
150
            text="Torus Knot")
 
151
 
 
152
class INFO_MT_mesh_misc_add(bpy.types.Menu):
 
153
    # Define the "Simple Objects" menu
 
154
    bl_idname = "INFO_MT_mesh_misc_add"
 
155
    bl_label = "Misc Objects"
 
156
 
 
157
    def draw(self, context):
 
158
        layout = self.layout
 
159
        layout.operator_context = 'INVOKE_REGION_WIN'
 
160
        layout.operator("mesh.primitive_steppyramid_add",
 
161
            text="Step Pyramid")
 
162
        layout.operator("mesh.honeycomb_add",
 
163
            text="Honeycomb")
 
164
        layout.operator("mesh.primitive_teapot_add",
 
165
            text="Teapot+")
135
166
# Register all operators and panels
136
167
 
137
168
# Define "Extras" menu