Fix T62782: Edge slide crashes with mirror enabled
authorCampbell Barton <ideasman42@gmail.com>
Wed, 20 Mar 2019 22:53:57 +0000 (09:53 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 20 Mar 2019 22:53:57 +0000 (09:53 +1100)
source/blender/editors/transform/transform.c

index dd71084..f3974b0 100644 (file)
@@ -6127,7 +6127,8 @@ static void slide_origdata_create_data(
 
                        for (i = 0; i < tc->data_len; i++, td++) {
                                BMVert *eve = td->extra;
-                               if (eve) {
+                               /* Check the vertex has been used since both sides of the mirror may be selected & sliding. */
+                               if (eve && !BLI_ghash_haskey(sod->origverts, eve)) {
                                        sv_mirror->v = eve;
                                        copy_v3_v3(sv_mirror->co_orig_3d, eve->co);