Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-25 04:04:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-25 04:08:50 +0300
commit22ec7b17d29d689d378791b56505aad62401230b (patch)
treeae2c32e3565662ed878c1584ce295d1e679e9c49 /source/blender/python/bmesh
parentb6084d56c9a202796b68219a7027a7e735fd427a (diff)
BMesh: raise exception face-split w/ adjacent loops
Was raising "internal error".
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_utils.c7
1 files changed, 7 insertions, 0 deletions
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;