change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / op / image.py
index 37d2936f7af445854fc2711caf09af33116b1922..18a286ccf5b4e49ddcc5d0591e6e24046bb35ef8 100644 (file)
@@ -41,4 +41,9 @@ class SaveDirty(bpy.types.Operator):
                     image.save(path=path)
         return {'FINISHED'}
 
-bpy.types.register(SaveDirty)
\ No newline at end of file
+
+def register():
+    bpy.types.register(SaveDirty)
+
+def unregister():
+    bpy.types.unregister(SaveDirty)