change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / ui / properties_data_modifier.py
index eb91a4dc70cb473a35b0d347ded27e6ac9a0a5ec..10d499115d757e1f114f37e878532e66211a67d8 100644 (file)
@@ -729,4 +729,17 @@ class DATA_PT_modifiers(DataButtonsPanel):
         col.prop(md, "width", slider=True)
         col.prop(md, "narrowness", slider=True)
 
-bpy.types.register(DATA_PT_modifiers)
+
+classes = [
+    DATA_PT_modifiers]
+
+
+def register():
+    register = bpy.types.register
+    for cls in classes:
+        register(cls)
+
+def unregister():
+    unregister = bpy.types.unregister
+    for cls in classes:
+        unregister(cls)