Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-02 15:53:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-02 15:53:48 +0400
commit3148c0f203ba23bead40e4e037bcc9a1eb27278b (patch)
tree1e91d053095e10a4b7afa1c392bb7525d3967cbe /add_mesh_solid.py
parentd566152b0372d1d29578c3353f6a4d5ff3af4d63 (diff)
update addons to work with new register/unregister method,
These scritps still need changes related to parent classes - mesh_surface_sketch.py - render_renderfarmfi.py - space_view3d_align_tools.py - object_cloud_gen.py
Diffstat (limited to 'add_mesh_solid.py')
-rw-r--r--add_mesh_solid.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/add_mesh_solid.py b/add_mesh_solid.py
index 579bb954..d0418dc3 100644
--- a/add_mesh_solid.py
+++ b/add_mesh_solid.py
@@ -887,26 +887,15 @@ class OtherMenu(bpy.types.Menu):
import space_info
-classes = [
- Solids,
- Solids_add_menu,
- PlatonicMenu,
- ArchiMenu,
- CatalanMenu,
- OtherMenu
-]
-
-menu_func = (lambda self,
- context: self.layout.menu(Solids_add_menu.bl_idname, icon="PLUGIN"))
+
+def menu_func(self, context):
+ self.layout.menu(Solids_add_menu.bl_idname, icon="PLUGIN")
+
def register():
- for i in classes:
- bpy.types.register(i)
space_info.INFO_MT_mesh_add.append(menu_func)
def unregister():
- for i in classes:
- bpy.types.unregister(i)
space_info.INFO_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":