diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-13 03:49:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-13 03:49:56 +0400 |
commit | 880a86230f9dc48a41e3274661c0be847c407b90 (patch) | |
tree | 0161bdd1d7b3324a5520c345715922fbe32648e4 /source/blender/python/bmesh/bmesh_py_utils.c | |
parent | 4a8d4f319f9a68c0006460861a01066a5c35921a (diff) |
bmesh_vert_separate: remove unused return value
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_utils.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_utils.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c index 55c97b66ffb..d228e1a0646 100644 --- a/source/blender/python/bmesh/bmesh_py_utils.c +++ b/source/blender/python/bmesh/bmesh_py_utils.c @@ -245,14 +245,10 @@ static PyObject *bpy_bm_utils_vert_separate(PyObject *UNUSED(self), PyObject *ar return NULL; } - if (BM_vert_separate(bm, py_vert->v, &elem, &elem_len, edge_array, edge_array_len)) { - /* return collected verts */ - ret = BPy_BMElem_Array_As_Tuple(bm, (BMHeader **)elem, elem_len); - MEM_freeN(elem); - } - else { - ret = PyTuple_New(0); - } + BM_vert_separate(bm, py_vert->v, &elem, &elem_len, edge_array, edge_array_len); + /* return collected verts */ + ret = BPy_BMElem_Array_As_Tuple(bm, (BMHeader **)elem, elem_len); + MEM_freeN(elem); PyMem_FREE(edge_array); |