From 747ba571a19f3adc46211e80184dde3fd6d336eb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Apr 2014 06:40:39 +1100 Subject: [PATCH] Fix T39550: polygons.active has bad default --- source/blender/bmesh/intern/bmesh_mesh_conv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/bmesh/intern/bmesh_mesh_conv.c b/source/blender/bmesh/intern/bmesh_mesh_conv.c index d92fe45afcd..775c917e4aa 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_conv.c +++ b/source/blender/bmesh/intern/bmesh_mesh_conv.c @@ -634,6 +634,7 @@ void BM_mesh_bm_to_me(BMesh *bm, Mesh *me, bool do_tessface) * end up with 'me->totface' and me->mface == NULL which can crash [#28625] */ me->totface = 0; + me->act_face = -1; CustomData_copy(&bm->vdata, &me->vdata, CD_MASK_MESH, CD_CALLOC, me->totvert); CustomData_copy(&bm->edata, &me->edata, CD_MASK_MESH, CD_CALLOC, me->totedge);