Grease Pencil draw - started with button from Toolbar - failed. Needed proper
event check.
This commit is contained in:
Ton Roosendaal
2012-10-30 18:40:09 +00:00
parent 21eb1735d6
commit 6bd18e3575

View File

@@ -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;