diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-22 09:56:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-22 09:56:20 +0400 |
commit | a9e25ac43320a253f557d945a8e83245e414a2ea (patch) | |
tree | 646737f30921fba6dabb467435fda5295827b093 /release | |
parent | b00c3b801bf07a67b98b604ee834e2d93dff0f39 (diff) |
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index c79c59e6a9b..05c1793b29f 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1060,7 +1060,7 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): col.label("Show Zero Weights:") rowsub = col.row() rowsub.active = (not tool_settings.use_multipaint) - rowsub.prop(tool_settings, "vertex_group_user", text="Show Group Use", expand=True) + rowsub.prop(tool_settings, "vertex_group_user", expand=True) self.unified_paint_settings(col, context) |