[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1824] contrib/py/scripts/addons/ add_mesh_archimedean_solids.py: some updates to keep it working

Brendon Murphy meta.androcto1 at gmail.com
Thu Apr 14 02:07:50 CEST 2011


Revision: 1824
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1824
Author:   meta-androcto
Date:     2011-04-14 00:07:48 +0000 (Thu, 14 Apr 2011)
Log Message:
-----------
some updates to keep it working
added warning "Truncated functions are broken"

Modified Paths:
--------------
    contrib/py/scripts/addons/add_mesh_archimedean_solids.py

Modified: contrib/py/scripts/addons/add_mesh_archimedean_solids.py
===================================================================
--- contrib/py/scripts/addons/add_mesh_archimedean_solids.py	2011-04-12 18:37:50 UTC (rev 1823)
+++ contrib/py/scripts/addons/add_mesh_archimedean_solids.py	2011-04-14 00:07:48 UTC (rev 1824)
@@ -20,10 +20,11 @@
     'name': 'Archimedean Solids',
     'author': 'Buerbaum Martin (Pontiac)',
     'version': (0, 2, 0),
-    'blender': (2, 5, 6),
-    'api': 34385,
+    'blender': (2, 5, 7),
+    'api': 36147,
     'location': 'View3D > Add > Mesh > Archimedean Solids',
     'description': 'Adds various archimedean solids to the Add Mesh menu',
+    "warning": "Truncated functions are broken",
     'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
         'Scripts/Add_Mesh/Archimedean_Solids',  # @todo Write the page.
     'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
@@ -1366,13 +1367,12 @@
 
 
 def register():
-    # Add "Archimedean Solids" menu to the "Add Mesh" menu
-    space_info.INFO_MT_mesh_add.append(menu_func)
+    bpy.utils.register_module(__name__)
 
+    bpy.types.INFO_MT_mesh_add.append(menu_func)
 
+
 def unregister():
-    # Remove "Archimedean Solids" menu from the "Add Mesh" menu.
-    space_info.INFO_MT_mesh_add.remove(menu_func)
+    bpy.utils.unregister_module(__name__)
 
-if __name__ == "__main__":
-    register()
+    bpy.types.INFO_MT_mesh_add.remove(menu_func)



More information about the Bf-extensions-cvs mailing list