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-03-17 14:26:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-17 14:26:23 +0400
commit0d0291f6e18a2b8357053bf8166220464beab138 (patch)
treea8a076d5351c643a484e9b099d26d8c89a303ab4 /source/blender/modifiers/intern/MOD_laplaciansmooth.c
parent1174c7d6628de721052190167e249f251a8bbbe5 (diff)
code cleanup: incorrect sized array args, remove some redundant code.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_laplaciansmooth.c')
-rw-r--r--source/blender/modifiers/intern/MOD_laplaciansmooth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciansmooth.c b/source/blender/modifiers/intern/MOD_laplaciansmooth.c
index b2ca1b0d79e..743cd1a829e 100644
--- a/source/blender/modifiers/intern/MOD_laplaciansmooth.c
+++ b/source/blender/modifiers/intern/MOD_laplaciansmooth.c
@@ -100,7 +100,6 @@ static void delete_void_pointer(void *data)
{
if (data) {
MEM_freeN(data);
- data = NULL;
}
}
@@ -242,7 +241,7 @@ static CustomDataMask required_data_mask(Object *UNUSED(ob), ModifierData *md)
static float average_area_quad_v3(float *v1, float *v2, float *v3, float *v4)
{
- float areaq = 0.0f;
+ float areaq;
areaq = area_tri_v3(v1, v2, v3) + area_tri_v3(v1, v2, v4) + area_tri_v3(v1, v3, v4);
return areaq / 2.0f;
}