diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-21 19:16:58 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-21 19:16:58 +0400 |
commit | 22317d7a2967657f6663666d7dcc59293b66419a (patch) | |
tree | 86618b85b2adf113eff5f26a5f74f065b06570c5 /source/blender/editors/transform/transform.c | |
parent | 42872eb036610017bd2f715e18f77f897c63ea83 (diff) |
Fix for [#23818] Edge slide not resetting properly when displaying edge lengths
* Temp selections weren't cleared on ending edge slide.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index a16417b846f..db055377d8a 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4658,8 +4658,23 @@ void freeSlideVerts(TransInfo *t) { TransDataSlideUv *suv; SlideData *sld = t->customData; + Mesh *me = t->obedit->data; int uvlay_idx; + if(me->drawflag & ME_DRAW_EDGELEN) { + TransDataSlideVert *tempsv; + LinkNode *look = sld->vertlist; + GHash *vertgh = sld->vhash; + while(look) { + tempsv = BLI_ghash_lookup(vertgh,(EditVert*)look->link); + if(tempsv != NULL) { + tempsv->up->f &= !SELECT; + tempsv->down->f &= !SELECT; + } + look = look->next; + } + } + //BLI_ghash_free(edgesgh, freeGHash, NULL); BLI_ghash_free(sld->vhash, NULL, (GHashValFreeFP)MEM_freeN); BLI_linklist_free(sld->vertlist, NULL); |