change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / ui / space_filebrowser.py
index 01f6f111812da38e9091235beebc32cd73f19e17..85a8295dbcfff9ee2a37857fba7ea0043160bbe5 100644 (file)
@@ -64,4 +64,17 @@ class FILEBROWSER_HT_header(bpy.types.Header):
         row.prop(params, "filter_sound", text="")
         row.prop(params, "filter_text", text="")
 
-bpy.types.register(FILEBROWSER_HT_header)
+
+classes = [
+    FILEBROWSER_HT_header]
+
+
+def register():
+    register = bpy.types.register
+    for cls in classes:
+        register(cls)
+
+def unregister():
+    unregister = bpy.types.unregister
+    for cls in classes:
+        unregister(cls)