Cleanup: correct array size in argument

This commit is contained in:
Campbell Barton
2021-01-04 16:16:04 +11:00
parent dcdc0f177a
commit 3254a63218
3 changed files with 7 additions and 7 deletions

View File

@@ -272,12 +272,12 @@ PyObject *BPy_BMVertSkin_CreatePyObject(struct MVertSkin *mvertskin)
#define MLOOPCOL_FROM_CAPSULE(color_capsule) \
((MLoopCol *)PyCapsule_GetPointer(color_capsule, NULL))
static void mloopcol_to_float(const MLoopCol *mloopcol, float r_col[3])
static void mloopcol_to_float(const MLoopCol *mloopcol, float r_col[4])
{
rgba_uchar_to_float(r_col, (const uchar *)&mloopcol->r);
}
static void mloopcol_from_float(MLoopCol *mloopcol, const float col[3])
static void mloopcol_from_float(MLoopCol *mloopcol, const float col[4])
{
rgba_float_to_uchar((uchar *)&mloopcol->r, col);
}