[Bf-blender-cvs] [2e914d5] master: GPencil: Numpad 0 and Numpad view rotation keys now work in Continuous Drawing Mode

Joshua Leung noreply at git.blender.org
Mon Feb 8 14:47:04 CET 2016


Commit: 2e914d556a588500e3b2958d41f67436fcc06e67
Author: Joshua Leung
Date:   Tue Feb 9 01:52:05 2016 +1300
Branches: master
https://developer.blender.org/rB2e914d556a588500e3b2958d41f67436fcc06e67

GPencil: Numpad 0 and Numpad view rotation keys now work in Continuous Drawing Mode

When animating to the camera, and working in "Continuous Drawing Mode",
it be necessary to return to the active camera viewport, after briefly pivoting
the view using MMB (to check on perspective or something like that). However,
before this fix, you would have had to exit drawing mode to do this.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 227cff5..c05446a 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1949,6 +1949,13 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
 			 *   - for undo (during sketching sessions)
 			 */
 		}
+		else if (ELEM(event->type, PAD0, PAD1, PAD2, PAD3, PAD4, PAD5, PAD6, PAD7, PAD8, PAD9)) {
+			/* allow numpad keys so that camera/view manipulations can still take place
+			 * - PAD0 in particular is really important for Grease Pencil drawing,
+			 *   as animators may be working "to camera", so having this working
+			 *   is essential for ensuring that they can quickly return to that view
+			 */
+		}
 		else {
 			estate = OPERATOR_RUNNING_MODAL;
 		}




More information about the Bf-blender-cvs mailing list