Renaming addon to fit convention of other addons
[blender-addons-contrib.git] / object_batch_rename_datablocks.py
index 1c9cdb29e03989fbda4bbcae9eec6eb396ad29c8..7281b998456448bb6c2c4cfc6a3ff771813e0166 100644 (file)
@@ -20,12 +20,11 @@ bl_info = {
     "name": "Batch Rename Datablocks",
     "author": "tstscr",
     "version": (1, 0),
-    "blender": (2, 5, 5),
-    "api": 33684,
-    "location": "use the search :)",
+    "blender": (2, 5, 9),
+    "location": "Search > (rename)",
     "description": "Batch renaming of datablocks (e.g. rename materials after objectnames)",
     "warning": "",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
         "Scripts/Object/Batch_Rename_Datablocks",
     "tracker_url": "http://projects.blender.org/tracker/index.php?"\
         "func=detail&aid=25242",
@@ -91,7 +90,7 @@ def rename_datablocks_main(self, context):
                                 m_slot.material.name = name
 
 class OBJECT_OT_batch_rename_datablocks(bpy.types.Operator):
-    '''Batch rename Datablocks'''
+    """Batch rename Datablocks"""
     bl_idname = "object.batch_rename_datablocks"
     bl_label = "Batch Rename Datablocks"
     bl_options = {'REGISTER', 'UNDO'}
@@ -179,8 +178,10 @@ class OBJECT_OT_batch_rename_datablocks(bpy.types.Operator):
         
         
 def register():
+    bpy.utils.register_module(__name__)
     pass
 def unregister():
+    bpy.utils.unregister_module(__name__)
     pass
 if __name__ == '__main__':
     register()