[Bf-blender-cvs] [bdceea9] master: GPencil Sculpt: Numpad keys now work when doing sculpt sessions (i.e. when the operator is run using wait_for_input=True)

Joshua Leung noreply at git.blender.org
Thu Dec 1 15:14:36 CET 2016


Commit: bdceea9475ea039b76bee3b290f17ef800d3433e
Author: Joshua Leung
Date:   Thu Dec 1 19:36:30 2016 +1300
Branches: master
https://developer.blender.org/rBbdceea9475ea039b76bee3b290f17ef800d3433e

GPencil Sculpt: Numpad keys now work when doing sculpt sessions (i.e. when the operator is run using wait_for_input=True)

This just brings it in line with the drawing operator

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

M	source/blender/editors/gpencil/gpencil_brush.c

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

diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index 8576cbc..ec5a42c 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -1798,6 +1798,12 @@ static int gpsculpt_brush_modal(bContext *C, wmOperator *op, const wmEvent *even
 			case UPARROWKEY:
 			case DOWNARROWKEY:
 				return OPERATOR_PASS_THROUGH;
+				
+			/* Camera/View Manipulations - Allowed */
+			/* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */
+			case PAD0:  case PAD1:  case PAD2:  case PAD3:  case PAD4:
+			case PAD5:  case PAD6:  case PAD7:  case PAD8:  case PAD9:
+				return OPERATOR_PASS_THROUGH;
 			
 			/* Unhandled event */
 			default:




More information about the Bf-blender-cvs mailing list