diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-10 00:09:54 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-10 00:09:54 +0400 |
commit | df1d59805ff74ee5ab36d5cc6d400f8a4eb12eff (patch) | |
tree | 82a11cd850b63c84852f1d99c0834f8f97f4a68d /source/blender/src/meshlaplacian.c | |
parent | 84d7e2ea9cb514b5cdcdb6dea185ab292d3810f3 (diff) |
Fix for bug #17588: crash with ctrl+a and no active object.
Diffstat (limited to 'source/blender/src/meshlaplacian.c')
-rw-r--r-- | source/blender/src/meshlaplacian.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/src/meshlaplacian.c b/source/blender/src/meshlaplacian.c index c2ad60ea842..96349e8fb98 100644 --- a/source/blender/src/meshlaplacian.c +++ b/source/blender/src/meshlaplacian.c @@ -178,7 +178,6 @@ static void laplacian_triangle_area(LaplacianSystem *sys, int i1, int i2, int i3 varea[i1] += (obtuse == 1)? area: area*0.5; varea[i2] += (obtuse == 2)? area: area*0.5; varea[i3] += (obtuse == 3)? area: area*0.5; - //printf("area %f\n", area); } else { len1= VecLenf(v2, v3); @@ -192,10 +191,7 @@ static void laplacian_triangle_area(LaplacianSystem *sys, int i1, int i2, int i3 varea[i1] += (t2 + t3)*0.25f; varea[i2] += (t1 + t3)*0.25f; varea[i3] += (t1 + t2)*0.25f; - //printf("varea %f %f %f\n", t1, t2, t3); } - - //printf("triangle area %f %f %f\n", t1, t2, t3); } static void laplacian_triangle_weights(LaplacianSystem *sys, int f, int i1, int i2, int i3) @@ -298,7 +294,7 @@ void laplacian_system_construct_end(LaplacianSystem *sys) for(a=0; a<totvert; a++) { if(sys->areaweights) { if(sys->varea[a] != 0.0f) - sys->varea[a]= 0.5f/sys->varea[a]; //MAX2(sys->varea[a], 0.001f); + sys->varea[a]= 0.5f/sys->varea[a]; } else sys->varea[a]= 1.0f; |