Blenderkit: Breaks keymap type "Window" #67565
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#67565
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: win64
Blender Version
Broken:
2.80, 45ae9edbd5ac, blender2.8, 2018-07-25,
Worked: (optional)
Short description of error
Keymap registration in Blenderkit Breaks Key map unregister "Window Type" in Viewport Pie Menu addon and likely causes error in addons load tests.
Exact steps for others to reproduce the error
Enable Blenderkit addon
Enable Viewport pie menu's addon then in the addons preferences enable all or only the editor switch pie.
Disable Blenderkit
Disable Viewport pie menu's.
Error:
Please note: The viewport pies addon registers and unregister and correctly removes the keymap from the "Window" keymaps when enabled without Blenderkit enabled then disabled. I believe this may have been the cause of the issues here
9792985119
due to order of enable disable in the addons load tests Resulting in my commits to the pie menus reverted. I'm not looking to change the pie menu's again until after release.The bug in Blenderkit needs to be addressed asap. Priority should be high and fix should be in before release.
I would like to thank @Imaginer for his help in irc on this matter and the time spent testing this unusual circumstance. A edited copy of his report back.
blenderkit gets unregistered before your addon and it's not, you see both addons add hotkeys to the 'Window' keymap.
When blenderkit removes the keymap it seems to go to far and messes up the 'Window' keymap
To verify just enable all addons except blenderkit and try a factory reset
Or just enable yours and blenderkit, then disable blenderkit and disable yours and you can replicate without doing a factory reset
[I'm wondering if it's something to do with a persistent property it registers on the keymap?
sorry, kmi.properties.keep_running
got solution for you
error in km, kmi for loop
replace lines 1692-1694 in ui.py with the normal unregistration and you'll need to replace the addon_keymaps append line in register.
@ideasman42 @brecht @VilemDuha
Added subscribers: @Imaginer, @ideasman42, @VilemDuha, @brecht, @BrendonMurphy
Adding highest priority as this should be fixed before release.
Just to clarify. When blenderkit registers it only stores the keymap in addon_keymaps; it doesn't store the keymap_item as well. When it unregisters the hotkey in ui.py it then uses "wm.keyconfigs.addon.keymaps.remove(km)" instead of km.**keymap_items.**remove(kmi) and so removes the entire "Window" keymap instead of just the hotkey it created. This then causes any other addons that try to remove hotkeys from the "Window" keymap to fail.
This issue was referenced by
5fdd75d683
Changed status from 'Open' to: 'Resolved'
Resolved by commit
5fdd75d683