diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-12 07:24:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-12 07:24:09 +0300 |
commit | 2a14ab998a576df6ba1fa5dc2c680d9078e58f81 (patch) | |
tree | 59505a2ac547eada0777ae23bdcedaa6f99f10ee /source/blender/python/bmesh/bmesh_py_utils.c | |
parent | 3a05135e12415c202e3fe7d69f3722c3711a3701 (diff) |
Fix T87259: Un-Subdivide creates duplicate faces
Add argument to BM_vert_collapse_faces to remove any faces that become
duplicate as result of the collapse.
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_utils.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c index 22c141e0958..61a84d77eb7 100644 --- a/source/blender/python/bmesh/bmesh_py_utils.c +++ b/source/blender/python/bmesh/bmesh_py_utils.c @@ -86,7 +86,7 @@ static PyObject *bpy_bm_utils_vert_collapse_edge(PyObject *UNUSED(self), PyObjec bm = py_edge->bm; - e_new = BM_vert_collapse_edge(bm, py_edge->e, py_vert->v, true, true); + e_new = BM_vert_collapse_edge(bm, py_edge->e, py_vert->v, true, true, true); if (e_new) { return BPy_BMEdge_CreatePyObject(bm, e_new); @@ -155,7 +155,7 @@ static PyObject *bpy_bm_utils_vert_collapse_faces(PyObject *UNUSED(self), PyObje bm = py_edge->bm; e_new = BM_vert_collapse_faces( - bm, py_edge->e, py_vert->v, clamp_f(fac, 0.0f, 1.0f), true, do_join_faces, true); + bm, py_edge->e, py_vert->v, clamp_f(fac, 0.0f, 1.0f), true, do_join_faces, true, true); if (e_new) { return BPy_BMEdge_CreatePyObject(bm, e_new); |