[Bf-blender-cvs] [747ba57] master: Fix T39550: polygons.active has bad default

Campbell Barton noreply at git.blender.org
Tue Apr 1 21:41:22 CEST 2014


Commit: 747ba571a19f3adc46211e80184dde3fd6d336eb
Author: Campbell Barton
Date:   Wed Apr 2 06:40:39 2014 +1100
https://developer.blender.org/rB747ba571a19f3adc46211e80184dde3fd6d336eb

Fix T39550: polygons.active has bad default

===================================================================

M	source/blender/bmesh/intern/bmesh_mesh_conv.c

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_mesh_conv.c b/source/blender/bmesh/intern/bmesh_mesh_conv.c
index d92fe45..775c917 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);




More information about the Bf-blender-cvs mailing list