Blender Git Loki

Git Commits -> Revision a613ef6

Revision a613ef6 by Antonis Ryakiotakis (pie-menus)
June 24, 2014, 20:56 (GMT)
Proof of concept pie interaction:

Press for calling operator, hold to spawn pie menu.

Test on object mode operator, pressing TAB toggles to edit mode, keeping
TAB pressed more that the drag timeout spawns a pie menu.

Still needs a way to enforce the menu to not listen for further drag
timeouts but looks like the concept holds.

This is implemented using the previous operator,
WM_OT_call_pie_menu_timer, in a macro. When the calling button is
pressed too long, the operator is cancelled (thus cancelling the macro)
but spawning a pie menu before that. If the timeout is not reached and
a key release event is detected, the operator finishes and the macro
continues, calling the next operator instead (object mode set, in our
case).

Commit Details:

Full Hash: a613ef67df45b52a23d0a8a26c905278b93def45
Parent Commit: e748662
Lines Changed: +25, -6

3 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+10, -0) (Diff)
/source/blender/editors/object/object_ops.c (+14, -5) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021