correct float vector sizes

This commit is contained in:
Campbell Barton
2012-06-10 20:31:01 +00:00
parent 113968aa15
commit 51e456a455

View File

@@ -3596,7 +3596,7 @@ typedef struct SmoothNode {
int axis, ntri;
} SmoothNode;
static void p_barycentric_2d(const float v1[2], const float v2[2], const float v3[2], float p[2], float b[2])
static void p_barycentric_2d(const float v1[2], const float v2[2], const float v3[2], const float p[2], float b[3])
{
float a[2], c[2], h[2], div;
@@ -3624,7 +3624,7 @@ static void p_barycentric_2d(const float v1[2], const float v2[2], const float v
}
}
static PBool p_triangle_inside(SmoothTriangle *t, float *co)
static PBool p_triangle_inside(SmoothTriangle *t, float co[2])
{
float b[3];
@@ -3706,7 +3706,7 @@ static void p_node_delete(SmoothNode *node)
MEM_freeN(node->tri);
}
static PBool p_node_intersect(SmoothNode *node, float *co)
static PBool p_node_intersect(SmoothNode *node, float co[2])
{
int i;
@@ -3726,7 +3726,7 @@ static PBool p_node_intersect(SmoothNode *node, float *co)
}
/* smooothing */
/* smoothing */
static int p_compare_float(const void *a, const void *b)
{