diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-06-24 18:16:36 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-06-24 18:16:36 +0400 |
commit | 2c72f5d5d6668ed0d35346d4b04fc980794e68ff (patch) | |
tree | c89d520b86a1c00edbb51cc9d40eebb78d65ff40 /source/blender/src/transform_conversions.c | |
parent | a4315376da7068079875c2d7d89e2c6397c72143 (diff) |
Fixes for bugs #4450, #4451 and #4452.
- Unwrapper setting got reset unnecessarily in do_versions.
- UV pixel snapping did floor rounding, nearest pixel is nicer.
- Draw Faces button didn't trigger UV editor redraw.
Diffstat (limited to 'source/blender/src/transform_conversions.c')
-rwxr-xr-x | source/blender/src/transform_conversions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/transform_conversions.c b/source/blender/src/transform_conversions.c index 40265db6a61..577b4966c8f 100755 --- a/source/blender/src/transform_conversions.c +++ b/source/blender/src/transform_conversions.c @@ -1829,8 +1829,8 @@ void flushTransUVs(TransInfo *t) td->loc2d[1]= td->loc[1]*invy; if((G.sima->flag & SI_PIXELSNAP) && (t->state != TRANS_CANCEL)) { - td->loc2d[0]= floor(width*td->loc2d[0])/width; - td->loc2d[1]= floor(height*td->loc2d[1])/height; + td->loc2d[0]= floor(width*td->loc2d[0] + 0.5f)/width; + td->loc2d[1]= floor(height*td->loc2d[1] + 0.5f)/height; } } |