VSE: Enable Pie Menu on Drag for Preview Keyframe Insert

When the "Pie Menu on Drag" is active in the preferences, pressing "I"
and then moving the mouse will open a pie menu where the user can
select which keying set to key.

Pull Request: https://projects.blender.org/blender/blender/pulls/144573
This commit is contained in:
Ramon Klauck
2025-08-17 14:01:03 +02:00
committed by Richard Antalik
parent 6485722c17
commit 81380a5fc2

View File

@@ -3250,7 +3250,6 @@ def km_sequencer_preview(params):
{"properties": [("keep_offset", True)]}),
# Animation
("anim.keyframe_insert", {"type": 'I', "value": 'PRESS'}, None),
("anim.keying_set_active_set", {"type": 'K', "value": 'PRESS', "shift": True}, None),
("anim.keyframe_insert_menu", {"type": 'K', "value": 'PRESS'}, {"properties": [("always_prompt", True)]}),
("anim.keyframe_delete_vse", {"type": 'I', "value": 'PRESS', "alt": True}, None),
@@ -3258,6 +3257,16 @@ def km_sequencer_preview(params):
*_template_items_context_menu("SEQUENCER_MT_preview_context_menu", params.context_menu_event),
])
if params.use_pie_click_drag:
items.extend([
("anim.keyframe_insert", {"type": 'I', "value": 'CLICK'}, None),
op_menu_pie("ANIM_MT_keyframe_insert_pie", {"type": 'I', "value": 'CLICK_DRAG'}),
])
else:
items.extend([
("anim.keyframe_insert", {"type": 'I', "value": 'PRESS'}, None),
])
if not params.legacy:
# New pie menus.
items.extend([