[Bf-blender-cvs] [1e05956] master: Fix T38872: Crazyspace could use stale derivedMesh data.

Campbell Barton noreply at git.blender.org
Fri Feb 28 10:12:59 CET 2014


Commit: 1e05956a0bbba43b5a91068447ec7ceae755a34c
Author: Campbell Barton
Date:   Fri Feb 28 20:11:41 2014 +1100
https://developer.blender.org/rB1e05956a0bbba43b5a91068447ec7ceae755a34c

Fix T38872: Crazyspace could use stale derivedMesh data.

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

M	source/blender/editors/mesh/editmesh_utils.c

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

diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c
index 1d8e506..4d5fbda 100644
--- a/source/blender/editors/mesh/editmesh_utils.c
+++ b/source/blender/editors/mesh/editmesh_utils.c
@@ -1324,6 +1324,9 @@ void EDBM_update_generic(BMEditMesh *em, const bool do_tessface, const bool is_d
 		/* in debug mode double check we didn't need to recalculate */
 		BLI_assert(BM_mesh_elem_table_check(em->bm) == true);
 	}
+
+	/* don't keep stale derivedMesh data around, see: [#38872] */
+	BKE_editmesh_free_derivedmesh(em);
 }
 
 /* poll call for mesh operators requiring a view3d context */




More information about the Bf-blender-cvs mailing list