Listen for workspace tool click

Is there a way to check from a modal operator whether another tool has been selected/clicked in the workspace tools panel? I want to cancel my own tool if the user clicks another tool.

If you know where to find the code for the “builtin_cursor” tool, please let me know, as it has the same functionality (not sure if it’s core blender c code or a python script), I might be able to figure out the process from there.

1 Like