Grease Pencil - Backend work:

Just preparation work for an eraser tool (as well as the code of a failed attempt at an implementation).
This commit is contained in:
Joshua Leung
2008-07-25 07:11:08 +00:00
parent 846ae7a187
commit 325b1666d4
6 changed files with 81 additions and 35 deletions

View File

@@ -2400,7 +2400,7 @@ void winqreadnodespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
switch(event) {
case LEFTMOUSE:
if(gpencil_do_paint(sa)) {
if(gpencil_do_paint(sa, L_MOUSE)) {
return;
}
else if(fromlib) {
@@ -2421,7 +2421,10 @@ void winqreadnodespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
break;
case RIGHTMOUSE:
if(find_indicated_socket(snode, &actnode, &actsock, SOCK_IN)) {
if(gpencil_do_paint(sa, R_MOUSE)) {
return;
}
else if(find_indicated_socket(snode, &actnode, &actsock, SOCK_IN)) {
if(actsock->flag & SOCK_SEL) {
snode->edittree->selin= NULL;
actsock->flag&= ~SOCK_SEL;