UV Editor: Add shortcut to Copy/Paste UVs

Assign Ctrl+C, Ctrl V to Copy/Paste UVs in UV Editor to the
default keymap and industry compatible keymap.

Similar to Copy/Paste splines in Mask editor.
Ref: https://projects.blender.org/blender/blender/issues/133558

Pull Request: https://projects.blender.org/blender/blender/pulls/133587
This commit is contained in:
Dangry98
2025-01-27 19:57:28 +01:00
committed by Pablo Vazquez
parent e8f18f33fa
commit e95687796d
2 changed files with 4 additions and 0 deletions

View File

@@ -1397,6 +1397,8 @@ def km_uv_editor(params):
{"properties": [("clear", False)]}),
("uv.pin", {"type": 'P', "value": 'PRESS', "alt": True},
{"properties": [("clear", True)]}),
("uv.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None),
("uv.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None),
op_menu("IMAGE_MT_uvs_unwrap", {"type": 'U', "value": 'PRESS'}),
(
op_menu_pie("IMAGE_MT_uvs_snap_pie", {"type": 'S', "value": 'PRESS', "shift": True})

View File

@@ -608,6 +608,8 @@ def km_uv_editor(params):
("uv.hide", {"type": 'H', "value": 'PRESS', "shift": True},
{"properties": [("unselected", True)]}),
("uv.reveal", {"type": 'H', "value": 'PRESS', "alt": True}, None),
("uv.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None),
("uv.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None),
op_menu_pie("IMAGE_MT_uvs_snap_pie", {"type": 'X', "value": 'PRESS', "shift": True}),
*_template_items_context_menu("IMAGE_MT_uvs_context_menu", {"type": 'RIGHTMOUSE', "value": 'PRESS'}),
("wm.context_toggle", {"type": 'B', "value": 'PRESS'},