Maniphest T62745

`bpy.utils.register_tool` does not register keymaps
Closed, Duplicate

Assigned To
Campbell Barton (campbellbarton)
Authored By
Germano Cavalcante (mano-wii)
Mar 19 2019, 3:47 PM
Tags
  • BF Blender
Subscribers
Germano Cavalcante (mano-wii)

Description

Blender Version
Broken: master, 2019-03-19

Short description of error
If a tool is registered by an addon through bpy.utils.register_tool. The keymap it references will not work.

Exact steps for others to reproduce the error

  1. Turn the ui_tool_simple.py template into an addon by simply adding an addon header (like the one in addon_add_object.py);
  2. Install the addon and save preferences;
  3. Close and open Blender;
  4. Try using the tool registered (It does not work).

Event Timeline

Germano Cavalcante (mano-wii) assigned this task to Campbell Barton (campbellbarton).Mar 19 2019, 3:47 PM
Germano Cavalcante (mano-wii) created this task.
Campbell Barton (campbellbarton) reopened this task as Needs Triage.Mar 26 2020, 10:44 AM
Germano Cavalcante (mano-wii) closed this task as a duplicate of T66655: Add-on with WorkSpaceTool not working after Blender restart.Mar 27 2020, 2:33 PM