I keep getting "Context is incorrect" errors even though I use an override.
Here is the .blend: http://pasteall.org/blend/index.php?id=50312
It has one of my models I am coding some Animation Managing Tools for. I am trying to unlink multiple actions from an object. For this I use a custom class object to refer to the actions.
I made a function that changes the active action for the object and then calls the function for pressing the X next to its name in the Dopesheet Editor "bpy.ops.action.unlink()".
For this I set the Execution Context to the Dopesheet Editor.
Now the strange thing is, that the first action gets unlinked but at the second it raises the error.
Debug Prints show that the area is set to the Dopesheet Editor.