diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-24 15:50:07 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-24 15:50:07 +0300 |
commit | 882707984171e722b2113d9575366f0502efeca4 (patch) | |
tree | e787111611dcae39f61a83fb0689b63e0e91df1e /source/blender/editors/transform/transform.c | |
parent | f1a545c4a5b008008ad12665ac8881452aa7d3db (diff) |
Bugfix: (Mario Kishalmi patch)
Edge slide bug: when multiple vertical subdivisions exist, the UVs for
a slide or loopcut-slide operation were wrong.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index f7d4493734b..7d32ee69a5e 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4513,7 +4513,7 @@ static int createSlideVerts(TransInfo *t) look = look->next; } - // make sure the UPs nad DOWNs are 'faceloops' + // make sure the UPs and DOWNs are 'faceloops' // Also find the nearest slidevert to the cursor look = vertlist; @@ -4669,7 +4669,7 @@ static int createSlideVerts(TransInfo *t) uv_new = tf->uv[k]; if (ev->tmp.l) { - if (fabs(suv->origuv[0]-uv_new[0]) > 0.0001 || fabs(suv->origuv[1]-uv_new[1])) { + if (fabs(suv->origuv[0]-uv_new[0]) > 0.0001f || fabs(suv->origuv[1]-uv_new[1]) > 0.0001f) { ev->tmp.l = -1; /* Tag as invalid */ BLI_linklist_free(suv->fuv_list,NULL); suv->fuv_list = NULL; |