[Bf-blender-cvs] [d652586b0cb] PSketch-279: PSketch: Change hotkeys to activate the tool (Temporary Fix)

Joshua Leung noreply at git.blender.org
Tue May 8 18:04:13 CEST 2018


Commit: d652586b0cbbffaf94a9a3ac29b340b6477a7ed6
Author: Joshua Leung
Date:   Fri Jan 19 11:37:44 2018 +1300
Branches: PSketch-279
https://developer.blender.org/rBd652586b0cbbffaf94a9a3ac29b340b6477a7ed6

PSketch: Change hotkeys to activate the tool (Temporary Fix)

As of 2.77/8, GPencil drawing has changed to no longer allow EKEY
to be held in paintmode (i.e. it will switch to the sculpt tool).
Therefore, we need to find another key in the meantime.

For now, temporary hotkeys are:
* Q-LMB for modal sketch
* Alt-Q for repeating the operation with the last stroke
  (Useful for testing for convergence issues)

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

M	source/blender/editors/armature/armature_ops.c

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

diff --git a/source/blender/editors/armature/armature_ops.c b/source/blender/editors/armature/armature_ops.c
index 0b281c9d09a..6431eadfd15 100644
--- a/source/blender/editors/armature/armature_ops.c
+++ b/source/blender/editors/armature/armature_ops.c
@@ -516,7 +516,9 @@ void ED_keymap_armature(wmKeyConfig *keyconf)
 	// XXX: pehrpas the "direct" hotkeys should only be available when in sculpt mode (to replace the default movement keys), but nothing else?
 	
 	/* Sketch - Direct Chain */
-	WM_keymap_add_item(keymap, "POSE_OT_sketch_direct_interactive", LEFTMOUSE, KM_PRESS, 0, EKEY);
+	WM_keymap_add_item(keymap, "POSE_OT_sketch_direct", QKEY, KM_PRESS, KM_ALT, 0);
+	WM_keymap_add_item(keymap, "POSE_OT_sketch_direct_interactive", LEFTMOUSE, KM_PRESS, 0, QKEY);
+	
 	
 	/* Sculpting - Apply effects... */
 	kmi = WM_keymap_add_item(keymap, "POSE_OT_brush_paint", LEFTMOUSE, KM_PRESS,        0, 0); //VKEY);



More information about the Bf-blender-cvs mailing list