Custom keymap with shortcut for ic_keymap.mesh_select_mode doesn't work after restarting Blender #68363

Closed
opened 2019-08-07 14:21:05 +02:00 by Robert Guetzkow · 6 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.34

Blender Version
Broken: version: 2.81 (sub 1), branch: master, commit date: 2019-08-04 08:21, hash: dd3cdf6f1e

Short description of error
When creating a custom keymap based on the industrial keymap, the shortcuts for switching between vertex, edge and face select (1,2 and 3) don't work after restarting Blender. It seems that the identifier ic_keymap.mesh_select_mode isn't recognized which results in Warning: property 'type' not found in keymap item 'OperatorProperties' being displayed on the console. When the preferences are opened after restarting Blender the shortcut entry doesn't display the correct title or properties in the custom keymap, however switching to the industrial keymap and then back makes it work again.

The cause of the problem seems to be that the operator IC_KEYMAP_OT_mesh_select_mode is only registered when the industrial keymap is loaded.

Correct shortcut in the industrial keymap
industrial_keymap.jpg


Shortcut in the custom keymap after creation
test_keymap_ok.jpg


Shortcut in the custom keymap after restarting Blender
test_keymap_reloaded.jpg

This issue was identified by [clawjelly ]] and reported on [ https:*blender.stackexchange.com/questions/147717/shortcuts-dont-work-after-restart | Blender's StackExchange .

Exact steps for others to reproduce the error

  • Select the industrial keymap in the preferences
  • Create a new keymap using the plus icon next to the keymap dropdown
  • (Optional) Switch to edit mode and verify that the shortcuts 1, 2 and 3 work as intended
  • Close Blender, then start it again

Switch to edit mode and verify that the shortcuts 1, 2 and 3 do not work

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.34 **Blender Version** Broken: version: 2.81 (sub 1), branch: master, commit date: 2019-08-04 08:21, hash: `dd3cdf6f1e` **Short description of error** When creating a custom keymap based on the industrial keymap, the shortcuts for switching between vertex, edge and face select (`1`,`2` and `3`) don't work after restarting Blender. It seems that the identifier `ic_keymap.mesh_select_mode` isn't recognized which results in `Warning: property 'type' not found in keymap item 'OperatorProperties'` being displayed on the console. When the preferences are opened after restarting Blender the shortcut entry doesn't display the correct title or properties in the custom keymap, however switching to the industrial keymap and then back makes it work again. The cause of the problem seems to be that the operator `IC_KEYMAP_OT_mesh_select_mode` is only registered when the industrial keymap is loaded. Correct shortcut in the industrial keymap ![industrial_keymap.jpg](https://archive.blender.org/developer/F7652886/industrial_keymap.jpg) ---- Shortcut in the custom keymap after creation ![test_keymap_ok.jpg](https://archive.blender.org/developer/F7652888/test_keymap_ok.jpg) ---- Shortcut in the custom keymap after restarting Blender ![test_keymap_reloaded.jpg](https://archive.blender.org/developer/F7652890/test_keymap_reloaded.jpg) This issue was identified by [clawjelly ]] and reported on [[ https:*blender.stackexchange.com/questions/147717/shortcuts-dont-work-after-restart | Blender's StackExchange ](https:*blender.stackexchange.com/users/74720/clawjelly). **Exact steps for others to reproduce the error** - Select the industrial keymap in the preferences - Create a new keymap using the plus icon next to the keymap dropdown - (Optional) Switch to edit mode and verify that the shortcuts `1`, `2` and `3` work as intended - Close Blender, then start it again # Switch to edit mode and verify that the shortcuts `1`, `2` and `3` do not work
Author
Member

Added subscriber: @rjg

Added subscriber: @rjg
Author
Member

This could also be considered a design decision, however it's definitively not obvious to the user why this wouldn't work.

This could also be considered a design decision, however it's definitively not obvious to the user why this wouldn't work.

Added subscribers: @ideasman42, @WilliamReynish

Added subscribers: @ideasman42, @WilliamReynish
Campbell Barton was assigned by William Reynish 2019-08-07 15:21:17 +02:00

This is an issue. @ideasman42 If we ported this to Blender proper, this would not be an issue. Should we do that?

This is an issue. @ideasman42 If we ported this to Blender proper, this would not be an issue. Should we do that?

Right, keymaps defining their own operators won't work, we should make this behavior possible without additional operators.

Right, keymaps defining their own operators won't work, we should make this behavior possible without additional operators.

Closed as duplicate of #63653

Closed as duplicate of #63653
Robert Guetzkow changed title from Custom keymap with shortcut for ic_keymap.mesh_select_mod doesn't work after restarting Blender to Custom keymap with shortcut for ic_keymap.mesh_select_mode doesn't work after restarting Blender 2019-08-07 18:29:14 +02:00
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#68363
No description provided.