diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-06 17:34:35 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-06 17:34:35 +0300 |
commit | 234760a9400aabcd765576c8f56693e551867cb3 (patch) | |
tree | 26790aaa1d30c48df4bd1e9809179e0a10e42f96 /add_mesh_extra_objects | |
parent | 2182a3db54a0699ead0ed2c8e4f529a367bbf351 (diff) |
Fix T44619: Top Face of a Step Pyramid has its normal inverted.
Also, fixed wrong '2.75' blender version statement - no need to update that unless mandatory,
this is minimal working version, not 'current' version...
And please, always remove menus *before* unregistering, otherwise UI code may try
to access removed classes (menus, shortcuts, operators, etc.).
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r-- | add_mesh_extra_objects/__init__.py | 11 | ||||
-rw-r--r-- | add_mesh_extra_objects/add_mesh_pyramid.py | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py index e15054cb..ce4c36da 100644 --- a/add_mesh_extra_objects/__init__.py +++ b/add_mesh_extra_objects/__init__.py @@ -24,12 +24,11 @@ bl_info = { "name": "Extra Objects", "author": "Multiple Authors", "version": (0, 3, 0), - "blender": (2, 75, 0), + "blender": (2, 74, 5), "location": "View3D > Add > Mesh", "description": "Add extra mesh object types", "warning": "", - "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/" - "Scripts/Add_Mesh/Add_Extra", + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/Add_Extra", "category": "Add Mesh", } @@ -218,11 +217,13 @@ def register(): # Add "Extras" menu to the "Add Mesh" menu bpy.types.INFO_MT_mesh_add.append(menu_func) -def unregister(): - bpy.utils.unregister_module(__name__) +def unregister(): # Remove "Extras" menu from the "Add Mesh" menu. bpy.types.INFO_MT_mesh_add.remove(menu_func) + bpy.utils.unregister_module(__name__) + + if __name__ == "__main__": register() diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py index 0876af11..b0852e7f 100644 --- a/add_mesh_extra_objects/add_mesh_pyramid.py +++ b/add_mesh_extra_objects/add_mesh_pyramid.py @@ -80,7 +80,7 @@ def add_pyramid_object(self, context): # get the base and cap faces done. bm.faces.new(bm.verts[0:self.num_sides]) - bm.faces.new(bm.verts[-self.num_sides:]) + bm.faces.new(reversed(bm.verts[-self.num_sides:])) # otherwise normal faces intern... T44619. # side faces block_vert_sets = split_list(bm.verts, self.num_sides) |