[Bf-blender-cvs] [9921e72] GPencil_EditStrokes: Trying a different keymap to get these to all play nicely together

Joshua Leung noreply at git.blender.org
Sat Oct 11 00:36:40 CEST 2014


Commit: 9921e72b725ea2d902e474500b4d59339057c75b
Author: Joshua Leung
Date:   Sat Oct 11 11:36:27 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB9921e72b725ea2d902e474500b4d59339057c75b

Trying a different keymap to get these to all play nicely together

* Eraser is now:    D Ctrl RMB
* Draw poly is now: D Alt LMB

For reference, the others are:
* Freehand Drawing: D LMB
* Line Drawing:     D CTRL LMB

* Select Point Single: D RMB
* Select Point Extend: D Shift RMB

===================================================================

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 70d1f56..c4e6d86 100644
--- a/source/blender/editors/gpencil/gpencil_ops.c
+++ b/source/blender/editors/gpencil/gpencil_ops.c
@@ -64,11 +64,11 @@ void ED_keymap_gpencil(wmKeyConfig *keyconf)
 	RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_DRAW_STRAIGHT);
 	
 	/* draw - poly lines */
-	kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", RIGHTMOUSE, KM_PRESS, KM_CTRL, DKEY);
+	kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", LEFTMOUSE, KM_PRESS, KM_ALT, DKEY);
 	RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_DRAW_POLY);
 	
 	/* erase */
-	kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", XKEY, KM_PRESS, 0, DKEY);
+	kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_draw", RIGHTMOUSE, KM_PRESS, KM_CTRL, DKEY);
 	RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_ERASER);
 	
 	/* Selection ------------------------------------- */




More information about the Bf-blender-cvs mailing list