diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-12 01:23:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-12 01:23:09 +0400 |
commit | a144793af1456d39f5d0218529215e64dda3dfc7 (patch) | |
tree | 73d14d83a79ebbbbef24988682bf24171cfa73ff /source/blender/makesrna/intern/rna_mesh_api.c | |
parent | 1b55158753b30bd1a4dcba756da4c890a5e7366b (diff) |
fix uninitalized var with new normal calculation function.
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
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__); |