avoid assert with bmesh inset
authorCampbell Barton <ideasman42@gmail.com>
Thu, 18 Jun 2015 23:41:39 +0000 (09:41 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 18 Jun 2015 23:41:39 +0000 (09:41 +1000)
source/blender/bmesh/operators/bmo_inset.c

index 3d899bd..6664bf6 100644 (file)
@@ -660,9 +660,10 @@ void bmo_inset_region_exec(BMesh *bm, BMOperator *op)
                        es->l = es->e_old->l; /* must be a boundary */
                }
 
-
                /* run the separate arg */
-               bmesh_edge_separate(bm, es->e_old, es->l, false);
+               if (!BM_edge_is_boundary(es->e_old)) {
+                       bmesh_edge_separate(bm, es->e_old, es->l, false);
+               }
 
                /* calc edge-split info */
                es->e_new = es->l->e;