[Bf-blender-cvs] [22ec7b1] master: BMesh: raise exception face-split w/ adjacent loops
Campbell Barton
noreply at git.blender.org
Wed Nov 25 02:15:15 CET 2015
Commit: 22ec7b17d29d689d378791b56505aad62401230b
Author: Campbell Barton
Date: Wed Nov 25 12:04:36 2015 +1100
Branches: master
https://developer.blender.org/rB22ec7b17d29d689d378791b56505aad62401230b
BMesh: raise exception face-split w/ adjacent loops
Was raising "internal error".
===================================================================
M source/blender/python/bmesh/bmesh_py_utils.c
===================================================================
diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c
index 379aafa..89c196d 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;
More information about the Bf-blender-cvs
mailing list