[Bf-blender-cvs] [a5ed00f] GPencil_Editing_Stage3: GP Sculpt: Shift-F affects brush strength, and Ctrl-F affects brush size

Joshua Leung noreply at git.blender.org
Tue Jul 14 17:09:16 CEST 2015


Commit: a5ed00f20a092f7778c09a7d5b251876762416ad
Author: Joshua Leung
Date:   Wed Jul 15 03:03:26 2015 +1200
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rBa5ed00f20a092f7778c09a7d5b251876762416ad

GP Sculpt: Shift-F affects brush strength, and Ctrl-F affects brush size

These hotkeys do not work when the brush is being used...

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

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 a58f2e0..24ee352 100644
--- a/source/blender/editors/gpencil/gpencil_ops.c
+++ b/source/blender/editors/gpencil/gpencil_ops.c
@@ -200,6 +200,14 @@ static void ed_keymap_gpencil_editing(wmKeyConfig *keyconf)
 	/* Brush-Based Editing */
 	WM_keymap_add_item(keymap, "GPENCIL_OT_brush_paint", EKEY, KM_PRESS, 0, 0);
 	
+	/* Shift-FKEY = Sculpt 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_sculpt.brush.strength");
+	
+	/* Ctrl-FKEY = Sculpt Brush Size */
+	kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", FKEY, KM_PRESS, KM_CTRL, 0);
+	RNA_string_set(kmi->ptr, "data_path_primary", "tool_settings.gpencil_sculpt.brush.size");
+	
 	
 	/* Transform Tools */
 	kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_translate", GKEY, KM_PRESS, 0, 0);




More information about the Bf-blender-cvs mailing list