Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-01 23:40:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-01 23:40:39 +0400
commit747ba571a19f3adc46211e80184dde3fd6d336eb (patch)
tree663ec0bc0d2a46e5029f294a0abd986ec9fe6d8f /source/blender/bmesh
parentbfe29e0ef756e948233e44e4daf0d85bb57731b5 (diff)
Fix T39550: polygons.active has bad default
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_mesh_conv.c1
1 files changed, 1 insertions, 0 deletions
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);