diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-09-14 20:12:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-09-14 20:12:17 +0400 |
commit | 1bde4e3274042f08b60153f58273387801052a97 (patch) | |
tree | 39bb6f55ebebb9a4532d6d7a15dd6137a134aee6 /source/blender/src/space.c | |
parent | 6e38ff32bed6e28871545f352a41a9b7343ed34d (diff) |
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.
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 2845b3340bb..8e8c4f4c400 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -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 */ |