[Bf-blender-cvs] [8f7f79e8259] greasepencil-object: Enable drawing start with Shift + Mouse
Antonio Vazquez
noreply at git.blender.org
Mon Jan 29 18:24:17 CET 2018
Commit: 8f7f79e82595a1a54b925169d0ce10c5d3475d4f
Author: Antonio Vazquez
Date: Mon Jan 29 18:24:09 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB8f7f79e82595a1a54b925169d0ce10c5d3475d4f
Enable drawing start with Shift + Mouse
This is necessary for lazy mode start
===================================================================
M source/blender/editors/gpencil/gpencil_ops.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c
index 24d264890ec..b86dd85b17d 100644
--- a/source/blender/editors/gpencil/gpencil_ops.c
+++ b/source/blender/editors/gpencil/gpencil_ops.c
@@ -434,6 +434,10 @@ static void ed_keymap_gpencil_painting_draw(wmKeyConfig *keyconf)
RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_DRAW);
RNA_boolean_set(kmi->ptr, "wait_for_input", false);
+ kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", LEFTMOUSE, KM_PRESS, KM_SHIFT, 0);
+ RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_DRAW);
+ RNA_boolean_set(kmi->ptr, "wait_for_input", false);
+
/* draw - straight lines */
kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", LEFTMOUSE, KM_PRESS, KM_CTRL, 0);
RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_DRAW_STRAIGHT);
More information about the Bf-blender-cvs
mailing list