From f5e6f59dba78dfbc0f7ea901fc0bedd7b4e087d3 Mon Sep 17 00:00:00 2001 From: Ben Batt Date: Wed, 30 Aug 2006 09:23:36 +0000 Subject: [PATCH] Fixed a bug where applying a modifier to a Curve or Surface object did not remove the modifier. --- source/blender/src/buttons_editing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index 576ed14af1d..d64f9f96fba 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -1092,6 +1092,9 @@ static void modifiers_applyModifier(void *obv, void *mdv) vertexCos = curve_getVertexCos(cu, &cu->nurb, &numVerts); mti->deformVerts(md, ob, NULL, vertexCos, numVerts); curve_applyVertexCos(cu, &cu->nurb, vertexCos); + + converted = 1; + MEM_freeN(vertexCos); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);