Page MenuHome

Add-on with WorkSpaceTool not working after Blender restart
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-4.15.0-20-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.48

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-09 22:45, hash: rB3b4054cb586f
Worked: (optional)

Short description of error

Add-on having a toolbar tool regisered with register_tool does not work after Blender restart

Exact steps for others to reproduce the error

  • Open Blender and install the add-on from the attached file

(This add-on script is created by pasting the code from 'UI Tool Simple' template and adding the minimum bl_info)

  • Enable the newly installed add-on
  • Restart Blender
  • Click 'My Circle Select' on tool shelf
  • The tool does not work
  • There is a message 'WM_keymap_poll: empty keymap '3D View Tool: Object, My Circle Select' on console

Event Timeline

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to Normal.

This is because the keymap signed to the tool is lost after it is registered in the addon.