2D Cursor in UV window

this can be placed by the moused and used for transforming around.

still need numeric location input but no room left in the image panel.
This commit is contained in:
2007-09-14 16:12:17 +00:00
parent 6e38ff32be
commit 1bde4e3274
9 changed files with 325 additions and 215 deletions

View File

@@ -4788,10 +4788,13 @@ static void winqreadimagespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
else
sima_sample_color();
}
else if(EM_texFaceCheck())
gesture();
else
else if(EM_texFaceCheck()) {
if (!gesture()) {
mouseco_to_cursor_sima();
}
} else {
sima_sample_color();
}
break;
case RIGHTMOUSE:
if(EM_texFaceCheck())
@@ -4908,8 +4911,30 @@ static void winqreadimagespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if(G.qual==0)
image_viewcenter();
break;
case COMMAKEY:
if(G.qual==LR_SHIFTKEY) {
G.v2d->around= V3D_CENTROID;
} else if(G.qual==0) {
G.v2d->around= V3D_CENTER;
}
scrarea_queue_headredraw(curarea);
scrarea_queue_winredraw(curarea);
break;
case PERIODKEY:
if(G.qual==LR_CTRLKEY) {
G.v2d->around= V3D_LOCAL;
} else if(G.qual==0) {
G.v2d->around= V3D_CURSOR;
}
scrarea_queue_headredraw(curarea);
scrarea_queue_winredraw(curarea);
break;
}
}
}
/* least intrusive nonumpad hack, only for plus/minus */