From 22ec7b17d29d689d378791b56505aad62401230b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 25 Nov 2015 12:04:36 +1100 Subject: BMesh: raise exception face-split w/ adjacent loops Was raising "internal error". --- source/blender/python/bmesh/bmesh_py_utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/python/bmesh') diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c index 379aafa5918..89c196dbcad 100644 --- a/source/blender/python/bmesh/bmesh_py_utils.c +++ b/source/blender/python/bmesh/bmesh_py_utils.c @@ -513,6 +513,13 @@ static PyObject *bpy_bm_utils_face_split(PyObject *UNUSED(self), PyObject *args, return NULL; } } + else { + if (BM_loop_is_adjacent(l_a, l_b)) { + PyErr_SetString(PyExc_ValueError, + "face_split(...): verts are adjacent in the face"); + return NULL; + } + } /* --- main function body --- */ bm = py_face->bm; -- cgit v1.2.3