change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / op / euler_filter.py
index 030d3c54bacb8fc19d9c88c26c589f6707cca2c5..c472af6c8c404ad8902c70ea0a7f9437e3f4a9e0 100644 (file)
@@ -55,7 +55,11 @@ class DiscontFilterOp(bpy.types.Operator):
         main(context)
         return {'FINISHED'}
 
-bpy.types.register(DiscontFilterOp)
+def register():
+    bpy.types.register(DiscontFilterOp)
+
+def unregister():
+    bpy.types.unregister(DiscontFilterOp)
 
 if __name__ == "__main__":
     bpy.ops.graph.discont_filter()