Correct error in BM_face_split_edgenet when no faces are split
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Jul 2014 08:28:57 +0000 (18:28 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Jul 2014 22:44:19 +0000 (08:44 +1000)
source/blender/bmesh/intern/bmesh_mods.c

index 4d3fac4c6e5fcac7e3d505eaf5ade652b23100f6..6475b86f0fd9d47ed38496a5060db34ffc28b17f 100644 (file)
@@ -928,6 +928,9 @@ bool BM_face_split_edgenet(
                BM_face_kill(bm, face_arr[0]);
                face_arr[0] = f;
        }
+       else {
+               BM_ELEM_API_FLAG_DISABLE(f, FACE_NET);
+       }
 
        for (i = 0; i < BLI_array_count(face_arr); i++) {
                BM_ELEM_API_FLAG_DISABLE(face_arr[i], FACE_NET);