change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / op / sequencer.py
index 9d3ee4a7fd7254963945eec2c803ef8e35c42d31..3ce2aa87d84b28437810cddbda17614648461dbf 100644 (file)
@@ -70,7 +70,12 @@ class SequencerCrossfadeSounds(bpy.types.Operator):
             self.report({'ERROR'}, "The selected strips don't overlap.")
             return {'CANCELLED'}
 
-bpy.types.register(SequencerCrossfadeSounds)
+
+def register():
+    bpy.types.register(SequencerCrossfadeSounds)
+
+def unregister():
+    bpy.types.unregister(SequencerCrossfadeSounds)
 
 if __name__ == "__main__":
     bpy.ops.sequencer.crossfade_sounds()