Action launched by tools (new “N” panel tools) are now “persistent” aka the tool remains active.
Any way to define a tool as “non persistent”, so complex actions dosen’t trigger the tool again and again - allowing pass_through modals ?
launch the tool
run a modal - if modal return pass_through the tool start again on mouse click.
Can you be more specific about what kind of tool you are writing?
When activating a tool in the new tool system, it basically activates some keymap items and gizmos. Those will trigger an operator, which if it needs to run modal would usually handle all the events itself and not pass them through, when e.g. dragging a gizmo. What is the reason you want to pass through the event?
The tool itself does show a preset menu (modal pass_through) and then allow users to create many objects using picked preset also modal pass_through. (archipack)
Alternative is a regular button, but at this time i’m not able to achieve same look and feel as tools (size - icon size).