[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51772] trunk/blender/source/blender/ editors/gpencil/gpencil_paint.c: Bugfix #33019

Ton Roosendaal ton at blender.org
Tue Oct 30 19:40:10 CET 2012


Revision: 51772
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51772
Author:   ton
Date:     2012-10-30 18:40:09 +0000 (Tue, 30 Oct 2012)
Log Message:
-----------
Bugfix #33019

Grease Pencil draw - started with button from Toolbar - failed. Needed proper
event check.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/gpencil/gpencil_paint.c

Modified: trunk/blender/source/blender/editors/gpencil/gpencil_paint.c
===================================================================
--- trunk/blender/source/blender/editors/gpencil/gpencil_paint.c	2012-10-30 17:36:00 UTC (rev 51771)
+++ trunk/blender/source/blender/editors/gpencil/gpencil_paint.c	2012-10-30 18:40:09 UTC (rev 51772)
@@ -1648,7 +1648,7 @@
 	 * 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;




More information about the Bf-blender-cvs mailing list