Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-04 08:16:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-04 09:40:05 +0300
commit3254a63218dd0ace82bca0b578ee74827bf2fa6d (patch)
tree223b3f117510dd1bc3dbe932a3850056331332ef /source/blender/python/bmesh/bmesh_py_types_meshdata.c
parentdcdc0f177a3907085a2f8208ceb5680ab4b57142 (diff)
Cleanup: correct array size in argument
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_meshdata.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_meshdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
index c43e5bb4d97..127ce7db503 100644
--- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
@@ -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);
}