Overriding or reimporting keymap duplicates all addon key bindings #94180

Closed
opened 2021-12-17 08:51:48 +01:00 by Ludvik Koutny · 7 comments
Contributor

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76

Blender Version
Broken: version: 3.0.0, branch: SelectThrough (modified), commit date: 2021-12-15 12:21, hash: 6349dd43b1
Worked: (newest version of Blender that worked as expected)

Short description of error
When saving a keymap either by overriding it (clicking the + button and typing the existing keymap name) or by exporting it and importing it back, all key bindings created by addons are duplicated, creating confusing, broken and bloated keymaps. As a result, users are forced to manually edit keymap .py files to fix the corruption.

Exact steps for others to reproduce the error

  1. Activate an addon which adds custom key bindings (Use NodeWrangler as an example. It adds lots of key bindings, is widely used and comes bundled with Blender)
  2. Save existing keymap under a new name
  3. Export it
  4. Import it back
    Result: The large amount of key bindings in Node Editor section of keymap created by NodeWrangler is now doubled. Exporting and Importing the keymap again will triple the bindings, and so on.
    Expected: The addon key bindings are not doubled when importing the keymap.

OR:

  1. Activate an addon which adds custom key bindings (Use NodeWrangler as an example. It adds lots of key bindings, is widely used and comes bundled with Blender)
  2. Save existing keymap under a new name
  3. Override the existing keymap by clicking the + button and typing its name again
    Result: The large amount of key bindings in Node Editor section of keymap created by NodeWrangler is now doubled.
    Expected: The addon key bindings are not doubled when overriding the keymap.
**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76 **Blender Version** Broken: version: 3.0.0, branch: SelectThrough (modified), commit date: 2021-12-15 12:21, hash: `6349dd43b1` Worked: (newest version of Blender that worked as expected) **Short description of error** When saving a keymap either by overriding it (clicking the + button and typing the existing keymap name) or by exporting it and importing it back, all key bindings created by addons are duplicated, creating confusing, broken and bloated keymaps. As a result, users are forced to manually edit keymap .py files to fix the corruption. **Exact steps for others to reproduce the error** 1. Activate an addon which adds custom key bindings (Use NodeWrangler as an example. It adds lots of key bindings, is widely used and comes bundled with Blender) 2. Save existing keymap under a new name 3. Export it 4. Import it back Result: The large amount of key bindings in Node Editor section of keymap created by NodeWrangler is now doubled. Exporting and Importing the keymap again will triple the bindings, and so on. Expected: The addon key bindings are not doubled when importing the keymap. OR: 1. Activate an addon which adds custom key bindings (Use NodeWrangler as an example. It adds lots of key bindings, is widely used and comes bundled with Blender) 2. Save existing keymap under a new name 3. Override the existing keymap by clicking the + button and typing its name again Result: The large amount of key bindings in Node Editor section of keymap created by NodeWrangler is now doubled. Expected: The addon key bindings are not doubled when overriding the keymap.
Author
Contributor

Added subscriber: @Rawalanche

Added subscriber: @Rawalanche

Added subscriber: @Branskugel

Added subscriber: @Branskugel

I can confirm this, I had this issue. The only way I found to resolve it was to completely reset to defaults by deleting my custom config and remaking it from scratch. Since then I avoid exporting and reimporting keymap

I can confirm this, I had this issue. The only way I found to resolve it was to completely reset to defaults by deleting my custom config and remaking it from scratch. Since then I avoid exporting and reimporting keymap
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Hi Ludvik, similar problem has been reported before: blender/blender-addons#88518 (Add-ons with keymap entries generate duplicates in keymap)

Will close. Feel free to comment or reopen if you think this report is not same as blender/blender-addons#88518. I might have misunderstood your report.

Bit strange because I no more able to reproduce blender/blender-addons#88518.

Hi Ludvik, similar problem has been reported before: blender/blender-addons#88518 (Add-ons with keymap entries generate duplicates in keymap) Will close. Feel free to comment or reopen if you think this report is not same as `blender/blender-addons#88518`. I might have misunderstood your report. Bit strange because I no more able to reproduce `blender/blender-addons#88518`.
Member

Closed as duplicate of blender/blender-addons#88518

Closed as duplicate of blender/blender-addons#88518

Removed subscriber: @Branskugel

Removed subscriber: @Branskugel
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#94180
No description provided.