diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-09 20:07:02 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-09 20:07:20 +0300 |
commit | 2c0f02dd0a886ee0e6869a35ab901c0fa8d822eb (patch) | |
tree | a4363f3c045b9d4c2c7081370c5f9c2975065bbe /source/blender/editors/gpencil/gpencil_ops.c | |
parent | c630ce3f6d1502f106ce7a7b51707970c95b2c0a (diff) |
GP: Add Shift+F to change Drawing Brush strength
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_ops.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index eec059a59d1..ed3eab7b642 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -590,6 +590,10 @@ static void ed_keymap_gpencil_painting(wmKeyConfig *keyconf) /* set poll callback - so that this keymap only gets enabled when stroke paintmode is enabled */ keymap->poll = gp_stroke_paintmode_poll; + /* Shift-FKEY = Brush Strength */ + kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", FKEY, KM_PRESS, KM_SHIFT, 0); + RNA_string_set(kmi->ptr, "data_path_primary", "tool_settings.gpencil_paint.brush.gpencil_settings.pen_strength"); + /* FKEY = Brush Size */ kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", FKEY, KM_PRESS, 0, 0); RNA_string_set(kmi->ptr, "data_path_primary", "tool_settings.gpencil_paint.brush.size"); |