correct float vector sizes
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user