[Bf-blender-cvs] [4e0b304] PSketch: PSculpt: Tweak keybindings
Joshua Leung
noreply at git.blender.org
Sun Jan 31 14:28:42 CET 2016
Commit: 4e0b30482dd8e83d3a58701a07ef9edeab666c56
Author: Joshua Leung
Date: Sun Nov 22 19:35:33 2015 +1300
Branches: PSketch
https://developer.blender.org/rB4e0b30482dd8e83d3a58701a07ef9edeab666c56
PSculpt: Tweak keybindings
* Q-LMB and L-Shift-LMB are used for painting now. The "shift" variant is used for
inverting the effect of the brush
* Alt-Q = Brush size
* Alt-Shift-Q = Brush strength
* Q-RMB - This is not used now, but has been reserved for showing a popup menu
to allow users to quickly change brushes without having to go through the panels
(just like with Grease Pencil)
===================================================================
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 9b318ff..26819bc 100644
--- a/source/blender/editors/armature/armature_ops.c
+++ b/source/blender/editors/armature/armature_ops.c
@@ -440,10 +440,22 @@ void ED_keymap_armature(wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "POSE_OT_sketch_direct_interactive", EKEY, KM_PRESS, 0, 0);
/* Pose -> Pose Sculpting ----------- */
+
+ /* Sculpting - Apply effects... */
kmi = WM_keymap_add_item(keymap, "POSE_OT_brush_paint", LEFTMOUSE, KM_PRESS, 0, QKEY);
RNA_boolean_set(kmi->ptr, "invert", false);
- kmi = WM_keymap_add_item(keymap, "POSE_OT_brush_paint", RIGHTMOUSE, KM_PRESS, 0, QKEY);
+ kmi = WM_keymap_add_item(keymap, "POSE_OT_brush_paint", LEFTMOUSE, KM_PRESS, KM_SHIFT, QKEY);
RNA_boolean_set(kmi->ptr, "invert", true);
+
+ /* Sculpt Brush Menu */
+ /* TODO: Q + RMB */
+
+ /* Adjust brush size/strength */
+ kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", QKEY, KM_PRESS, KM_ALT, 0);
+ RNA_string_set(kmi->ptr, "data_path_primary", "tool_settings.pose_sculpt.brush.size");
+
+ kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", QKEY, KM_PRESS, KM_CTRL | KM_ALT, 0);
+ RNA_string_set(kmi->ptr, "data_path_primary", "tool_settings.pose_sculpt.brush.strength");
}
More information about the Bf-blender-cvs
mailing list