diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-09-21 14:28:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-09-21 14:28:04 +0400 |
commit | 3b4d74de38d87e6db1e2bb8e7cc2d411209dfa7b (patch) | |
tree | 121522ffe3cc7b49f9f19472c5413e61bae7a882 /source/blender/src/editsima.c | |
parent | 9dcf337e93e02300e66739bb647031c94551a10d (diff) |
added draw types for UVs
speedup for UV display (the MTFace loopup is only done once and stored in the EditFaces temp pointer)
Diffstat (limited to 'source/blender/src/editsima.c')
-rw-r--r-- | source/blender/src/editsima.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/src/editsima.c b/source/blender/src/editsima.c index d0e8f11b1c2..4a748e4e4df 100644 --- a/source/blender/src/editsima.c +++ b/source/blender/src/editsima.c @@ -942,16 +942,13 @@ void sel_uvco_inside_radius(short sel, EditFace *efa, MTFace *tface, int index, static void getSpaceImageDimension(SpaceImage *sima, float *xy) { ImBuf *ibuf= BKE_image_get_ibuf(sima->image, &sima->iuser); - float z; - - z = sima->zoom; if (ibuf) { - xy[0] = ibuf->x * z; - xy[1] = ibuf->y * z; + xy[0] = ibuf->x * sima->zoom; + xy[1] = ibuf->y * sima->zoom; } else { - xy[0] = 256 * z; - xy[1] = 256 * z; + xy[0] = 256 * sima->zoom; + xy[1] = 256 * sima->zoom; } } @@ -991,7 +988,7 @@ void uvedit_selectionCB(short selecting, Object *editobj, short *mval, float rad } else { /* force_draw() is no good here... */ glDrawBuffer(GL_FRONT); - draw_tfaces(); + draw_uvs_sima(); bglFlush(); glDrawBuffer(GL_BACK); } |