From 234760a9400aabcd765576c8f56693e551867cb3 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 6 May 2015 16:34:35 +0200 Subject: 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.). --- add_mesh_extra_objects/__init__.py | 11 ++++++----- 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) -- cgit v1.2.3