[Bf-extensions-cvs] [234760a] master: Fix T44619: Top Face of a Step Pyramid has its normal inverted.
Bastien Montagne
noreply at git.blender.org
Wed May 6 16:36:54 CEST 2015
Commit: 234760a9400aabcd765576c8f56693e551867cb3
Author: Bastien Montagne
Date: Wed May 6 16:34:35 2015 +0200
Branches: master
https://developer.blender.org/rBA234760a9400aabcd765576c8f56693e551867cb3
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.).
===================================================================
M add_mesh_extra_objects/__init__.py
M add_mesh_extra_objects/add_mesh_pyramid.py
===================================================================
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index e15054c..ce4c36d 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 0876af1..b0852e7 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)
More information about the Bf-extensions-cvs
mailing list