What is the best way to manage handlers in an add-on?
I am making an add-on that uses the scene_update_pre
handler. In the register()
function, I have added this line:
bpy.app.handlers.scene_update_pre.append(my_handler)
The issue is how do I setup the unregister()
function to remove the handler if the add-on is disabled? I can't use pop
because it might mess up another add-on, correct?
Whats the best practice when making an Add-on?