fix [#35507] BMesh module: Crash on to_mesh() if faces.layers.tex is used but no loops.layers.uv

This commit is contained in:
2013-06-26 04:17:41 +00:00
parent 7d608452d0
commit c0c9f5386b
4 changed files with 46 additions and 0 deletions

View File

@@ -138,6 +138,12 @@ static PyObject *bpy_bm_update_edit_mesh(PyObject *UNUSED(self), PyObject *args,
{
extern void EDBM_update_generic(BMEditMesh *em, const bool do_tessface, const bool is_destructive);
BMEditMesh *em = me->edit_btmesh;
BMesh *bm = em->bm;
/* python won't ensure matching uv/mtex */
BM_mesh_cd_validate(bm);
EDBM_update_generic(me->edit_btmesh, do_tessface, is_destructive);
}