Edge slide (minor change, use existing vertex)
authorCampbell Barton <ideasman42@gmail.com>
Fri, 12 Jun 2015 16:06:38 +0000 (02:06 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 12 Jun 2015 17:24:07 +0000 (03:24 +1000)
source/blender/editors/transform/transform.c

index 28b0d9711cc13a90bec4163b708bd96d38a4561e..5b737506428e06a4e98f51eb529922260a4242df 100644 (file)
@@ -5957,7 +5957,7 @@ static bool createEdgeSlideVerts(TransInfo *t)
                                                get_next_loop(v, l_a, e_prev, l_tmp->e, sv->dir_side[0]);
                                        }
                                        else {
-                                               sub_v3_v3v3(sv->dir_side[0], BM_edge_other_vert(l_tmp->e, v)->co, v->co);
+                                               sub_v3_v3v3(sv->dir_side[0], sv->v_side[0]->co, v->co);
                                        }
                                }
 
@@ -5968,7 +5968,7 @@ static bool createEdgeSlideVerts(TransInfo *t)
                                                get_next_loop(v, l_b, e_prev, l_tmp->e, sv->dir_side[1]);
                                        }
                                        else {
-                                               sub_v3_v3v3(sv->dir_side[1], BM_edge_other_vert(l_tmp->e, v)->co, v->co);
+                                               sub_v3_v3v3(sv->dir_side[1], sv->v_side[1]->co, v->co);
                                        }
                                }