diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-10-11 17:54:01 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-10-11 17:54:01 +0400 |
commit | 8abecb7a5020e81d3672c94518c8f31bc697cc40 (patch) | |
tree | 05896f54dd28320d0072c9a908c460d19dc4cc4b /source/blender | |
parent | 3437544b885d6961e46ac9a84388a931e3e09e53 (diff) |
GPencil UI: Experimental "tool palette" pie menu
Double-tapping D brings up a pie menu providing access to many of the different
Grease Pencil drawing and editing tools.
The current implementation is a quick test of how this could work.
* Double-tapping D is the best compromise I managed to find so far which allows
the pie to show, but without getting triggered everytime something else happens
* I've left off one or two tools since they didn't work terribly well,
as they rely on mouse position at time of invocation
* Even now, the drawing tools take a little getting used to (i.e. you must immediately
start drawing once you click. But, once gotten used to, it seems to be ok...
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index c4e6d86cc5d..7b0710a9dc5 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -108,6 +108,11 @@ void ED_keymap_gpencil(wmKeyConfig *keyconf) kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_mirror", MKEY, KM_PRESS, 0, DKEY); RNA_boolean_set(kmi->ptr, "gpencil_strokes", true); + + + /* Pie Menu */ + /* XXX: This is currently still experimental! */ + WM_keymap_add_menu_pie(keymap, "GPENCIL_PIE_tool_palette", DKEY, KM_DBL_CLICK, 0, 0); } /* ****************************************** */ |