Blender Git Loki

Git Commits -> Revision a9e25ac

Revision a9e25ac by Campbell Barton (master)
February 22, 2013, 05:56 (GMT)
Toggle-Drag UI Feature

Dragging on toggle buttons can now be used to press multiple buttons at once, especially useful for layer and outliner buttons.


notes:
- automatically enabled for all toggle buttons
(may change this if it becomes a problem).
- only buttons of the same type are pressed
(helps avoid annoyances eg; dragging past layer buttons onto other 3d header buttons and pressing by accident).
- automatic axis locking - dragging will lock to X/Y depending on the initial drag direction,
makes swipe motions work better, especially with the outliner.


implementation details:
- may re-implement as a region handler (currently its a modal operator).
- checking buttons in-between cursor motion events could be more efficient (but currently works ok).
- button execution needs to be improved
(currently executing a button thats not under the mouse needed a workaround for passing uiHandleButtonData),
requires further changes to UI code, will do next.

Commit Details:

Full Hash: a9e25ac43320a253f557d945a8e83245e414a2ea
SVN Revision: 54742
Parent Commit: b00c3b8
Lines Changed: +309, -10

6 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+1, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+3, -0) (Diff)
/source/blender/editors/interface/interface.c (+18, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+62, -9) (Diff)
/source/blender/editors/interface/interface_intern.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+223, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021