Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-12 01:23:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-12 01:23:09 +0400
commita144793af1456d39f5d0218529215e64dda3dfc7 (patch)
tree73d14d83a79ebbbbef24988682bf24171cfa73ff /source/blender
parent1b55158753b30bd1a4dcba756da4c890a5e7366b (diff)
fix uninitalized var with new normal calculation function.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_mesh_api.c1
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__);