Commit: 56fa48969e13bf54fc7f64e03cccf6ac82624b15
Author: Campbell Barton
Date:   Thu Feb 15 10:48:12 2018 +1100
Branches: master
https://developer.blender.org/rB56fa48969e13bf54fc7f64e03cccf6ac82624b15

Fix T54072: Crash splitting edges

===================================================================

M       source/blender/bmesh/intern/bmesh_core.c

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_core.c 
b/source/blender/bmesh/intern/bmesh_core.c
index 36b2f9cadf7..aba0160622f 100644
--- a/source/blender/bmesh/intern/bmesh_core.c
+++ b/source/blender/bmesh/intern/bmesh_core.c
@@ -2423,9 +2423,10 @@ static void bmesh_kernel_vert_separate__cleanup(BMesh 
*bm, LinkNode *edges_separ
                                        /* don't visit again */
                                        n_prev->next = n_step->next;
                                }
-                       } while ((void)
-                                (n_prev = n_step),
-                                (n_step = n_step->next));
+                               else {
+                                       n_prev = n_step;
+                               }
+                       } while ((n_step = n_step->next));
 
                } while ((n_orig = n_orig->next) && n_orig->next);
        } while ((edges_separate = edges_separate->next));

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to