update templates for registration changes
[blender.git] / release / scripts / templates / addon_add_object.py
index 00db3a5529157aebae6a9bfd6c244e12adaadf0d..f4f1185e282e86593b8ddf3f42e5cb423dd2c5f8 100644 (file)
@@ -65,10 +65,12 @@ def add_object_button(self, context):
 
 
 def register():
+    bpy.utils.register_class(OBJECT_OT_add_object)
     bpy.types.INFO_MT_mesh_add.append(add_object_button)
 
 
 def unregister():
+    bpy.utils.unregister_class(OBJECT_OT_add_object)
     bpy.types.INFO_MT_mesh_add.remove(add_object_button)