From a144793af1456d39f5d0218529215e64dda3dfc7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Sep 2013 21:23:09 +0000 Subject: fix uninitalized var with new normal calculation function. --- source/blender/makesrna/intern/rna_mesh_api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender') diff --git a/source/blender/makesrna/intern/rna_mesh_api.c b/source/blender/makesrna/intern/rna_mesh_api.c index b8f9a649e2c..79c5d793298 100644 --- a/source/blender/makesrna/intern/rna_mesh_api.c +++ b/source/blender/makesrna/intern/rna_mesh_api.c @@ -76,6 +76,7 @@ static void rna_Mesh_calc_normals_split(Mesh *mesh, float min_angle) if (CustomData_has_layer(&mesh->pdata, CD_NORMAL)) { /* This assume that layer is always up to date, not sure this is the case (esp. in Edit mode?)... */ polynors = CustomData_get_layer(&mesh->pdata, CD_NORMAL); + free_polynors = false; } else { polynors = MEM_mallocN(sizeof(float[3]) * mesh->totpoly, __func__); -- cgit v1.2.3