[Bf-blender-cvs] [683743b] master: Correction to last commit

Campbell Barton noreply at git.blender.org
Sat Jun 28 22:08:56 CEST 2014


Commit: 683743b36092373582b0d3808d8ffdc82c67990a
Author: Campbell Barton
Date:   Sun Jun 29 06:08:41 2014 +1000
https://developer.blender.org/rB683743b36092373582b0d3808d8ffdc82c67990a

Correction to last commit

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

M	source/blender/modifiers/intern/MOD_laplaciandeform.c

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

diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c b/source/blender/modifiers/intern/MOD_laplaciandeform.c
index f613d60..ffadcda 100644
--- a/source/blender/modifiers/intern/MOD_laplaciandeform.c
+++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c
@@ -604,7 +604,8 @@ static void initSystem(LaplacianDeformModifierData *lmd, Object *ob, DerivedMesh
 		int *index_anchors = MEM_mallocN(sizeof(int) * numVerts, __func__);  /* over-alloc */
 		MFace *tessface;
 		STACK_DECLARE(index_anchors);
-		STACK_INIT(index_anchors);
+
+		STACK_INIT(index_anchors, numVerts);
 
 		modifier_get_vgroup(ob, dm, lmd->anchor_grp_name, &dvert, &defgrp_index);
 		BLI_assert(dvert != NULL);




More information about the Bf-blender-cvs mailing list