Fix: GPv3: Add missing keymaps #128705
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#128705
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "nickberckley/blender:gp-keymap"
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?
Adds missing keymaps in Grease Pencil modes. Two menus are also added which are needed to be called by keymaps to match GPv2.
Paint Mode
Edit Mode
Sculpt Mode
Weight Paint and Vertex Paint Modes
Issues:
grease_pencil.select
operator, it usesview3d
operator and that causes some issues. For example,L
keymap in GPv2 selects linked strokes under mouse cursor. In GPv3 same shortcut selects strokes of selected points (grease_pencil.select_linked
), which should technically be onCtrl L
to match rest of the Blender. Regular LMB box-select in edit mode also can't select curve handle points in most cases (whileB
box select can). This can not be solved by keymaps alone and requires either separate operator for grease pencil selection, or adding properties to current selection operator.Shift G
operator in edit mode for selecting similar executes operator right away, instead of poping up operator menu, like it does in GPv2. I'm not sure if there's something missing in operator code, or here. Suggestions welcomed, but if it's operator issue I'll leave that alone here.Questions for reviewers:
Fix: GPv3: Add missing keymapsto WIP: Fix: GPv3: Add missing keymapsWIP: Fix: GPv3: Add missing keymapsto Fix: GPv3: Add missing keymapsI think for the select similar issue adding
WM_menu_invoke
as the invoke would be the right fix.Looks good to me overall. I agree that some of this could be refactored. E.g. we could have a
km_grease_pencil_keyframes
keymap that would be used in the modes that need theinsert_blank_frame
,delete_frame
etc. But that's a cleanup for later.@ -3871,2 +3892,4 @@
op_menu("GREASE_PENCIL_MT_move_to_layer", {"type": 'M', "value": 'PRESS'}),
# Merge Down
("grease_pencil.layer_merge", {"type": 'M', "value": 'PRESS', "ctrl": True, "shift": True}, None),
Would be good to specify the
mode
here so that we're sure it uses theDOWN
option.I believe they are needed to select bones in pose mode. This might be broken atm.
@mendio Can probably answer this one better than I can, but I would guess these should be also added in the other modes.
Yes, I think it would be nice for consistency if all modes shared the same shortcuts for hide/show layers