Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2012-10-30 22:40:09 +0400
committerTon Roosendaal <ton@blender.org>2012-10-30 22:40:09 +0400
commit6bd18e357563f6b28f7cfdf6da8a032bab947172 (patch)
tree40de901a4e719f93dc8ab32a10fa4d28b54a8c00 /source/blender/editors/gpencil
parent21eb1735d63044e0964cf474f7b598ddc0b6495d (diff)
Bugfix #33019
Grease Pencil draw - started with button from Toolbar - failed. Needed proper event check.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 42ea924522c..a1e8c76c4d2 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1648,7 +1648,7 @@ static int gpencil_draw_invoke(bContext *C, wmOperator *op, wmEvent *event)
* painting should start immediately. Otherwise, this was called from a toolbar, in which
* case we should wait for the mouse to be clicked.
*/
- if (event->type) {
+ if (event->val == KM_PRESS) {
/* hotkey invoked - start drawing */
//printf("\tGP - set first spot\n");
p->status = GP_STATUS_PAINTING;