Fix for array init in BM_Point_In_Face
authorAndrew Wiggin <ender79bl@gmail.com>
Sun, 11 Sep 2011 16:41:03 +0000 (16:41 +0000)
committerAndrew Wiggin <ender79bl@gmail.com>
Sun, 11 Sep 2011 16:41:03 +0000 (16:41 +0000)
source/blender/bmesh/intern/bmesh_polygon.c

index 391b7f2e69a5b10ac4ff6406495ff7ef34944bf3..fc6abd724cfa53d985bb57051e584d46671b0ba2 100644 (file)
@@ -595,7 +595,7 @@ static int linecrossesf(float *v1, float *v2, float *v3, float *v4)
 int BM_Point_In_Face(BMesh *bm, BMFace *f, float co[3])
 {
        int xn, yn, zn, ax, ay;
-       float co2[3], cent[3] = {0.0f, 0.0f}, out[3] = {FLT_MAX*0.5f, FLT_MAX*0.5f, 0};
+       float co2[3], cent[3] = {0.0f, 0.0f, 0.0f}, out[3] = {FLT_MAX*0.5f, FLT_MAX*0.5f, 0};
        BMLoop *l;
        int crosses = 0;
        float eps = 1.0f+(float)FLT_EPSILON*150.0f;