[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1827] contrib/py/scripts/addons/ mesh_normal_smooth.py: fix for api updates (menu registration)

Brendon Murphy meta.androcto1 at gmail.com
Thu Apr 14 06:27:42 CEST 2011


Revision: 1827
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1827
Author:   meta-androcto
Date:     2011-04-14 04:27:42 +0000 (Thu, 14 Apr 2011)
Log Message:
-----------
fix for api updates (menu registration)
added warning as the script is broken.

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

Modified: contrib/py/scripts/addons/mesh_normal_smooth.py
===================================================================
--- contrib/py/scripts/addons/mesh_normal_smooth.py	2011-04-14 01:58:27 UTC (rev 1826)
+++ contrib/py/scripts/addons/mesh_normal_smooth.py	2011-04-14 04:27:42 UTC (rev 1827)
@@ -25,11 +25,11 @@
     "name": "Normal Smooth",
     "author": "Dolf Veenvliet",
     "version": (7,),
-    "blender": (2, 5, 5),
-    "api": 32738,
+    "blender": (2, 5, 7),
+    "api": 36147,
     "location": "View3D > Specials > Normal Smooth ",
     "description": "Smooth the vertex position based on the normals",
-    "warning": "",
+    "warning": "Broken",
     "wiki_url": "",
     "tracker_url": "",
     "category": "Mesh"}
@@ -183,10 +183,14 @@
 
 
 def register():
+    bpy.utils.register_module(__name__)
+
     bpy.types.VIEW3D_MT_edit_mesh_specials.append(menu_func)
     bpy.types.VIEW3D_MT_edit_mesh_vertices.append(menu_func)
 
 def unregister():
+    bpy.utils.unregister_module(__name__)
+
     bpy.types.VIEW3D_MT_edit_mesh_specials.remove(menu_func)
     bpy.types.VIEW3D_MT_edit_mesh_vertices.remove(menu_func)
 



More information about the Bf-extensions-cvs mailing list