System Information
Operating system: WIN10 64bit
Graphics card: GF GTX 660
Blender Version
Broken: 2.80, 98f00a3eb526, master, 2019-04-03
Short description of error
Blender build-in template 'ui tool simple' - wont work as addon.
The ui tool from addon is registered ok, there is new icon added on left toolbar, but tool bl_keymap does nothing.
Left click should scale active object
Right click should toggle objects selection.
bl_keymap = (
("mesh.test_scale", {"type": 'LEFTMOUSE', "value": 'PRESS'},None ), #wont work
("object.select_all", {"type": 'RIGHTMOUSE', "value": 'PRESS'}, None), # wont work
)Exact steps for others to reproduce the error
Install addon file, with custom WorkSpaceTool definition:
Using LBM, RMB with new tool active, does nothing.
Thing is - after reloading scripts with:
bpy.ops.script.reload()
The tools starts to work.