BMesh: raise exception face-split w/ adjacent loops

Was raising "internal error".
This commit is contained in:
Campbell Barton 2015-11-25 12:04:36 +11:00
parent b6084d56c9
commit 22ec7b17d2
Notes: blender-bot 2023-02-14 08:24:03 +01:00
Referenced by issue #46992, Can't reload .py from blender\2.76\scripts\addons folder
1 changed files with 7 additions and 0 deletions

View File

@ -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;