diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-02-08 15:52:05 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-02-08 16:45:34 +0300 |
commit | 2e914d556a588500e3b2958d41f67436fcc06e67 (patch) | |
tree | 7555aa603434e76d69b51171468bd3942d9af445 /source/blender/editors/gpencil | |
parent | 5136791de1d39db61a9e97bb54d3dbb5a1dc06c4 (diff) |
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.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 227cff5d576..c05446a9d30 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; } |