diff options
author | Martijn Versteegh <blender@aaltjegron.nl> | 2022-11-08 16:07:27 +0300 |
---|---|---|
committer | Martijn Versteegh <blender@aaltjegron.nl> | 2022-11-08 16:07:27 +0300 |
commit | 8a28d9129a9c905c43a8cde3aeeb2d10395dcac4 (patch) | |
tree | 0ed11bdaa1540a611d42c984bf2ee8c99a880d40 /source/blender/python/bmesh/bmesh_py_types_customdata.c | |
parent | 401b3d316a5d9898b37eb7d6c29aec44922b07e3 (diff) |
Use the proper types for various CustomData layers.
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_customdata.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_customdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c index ea588a58f3d..b1e83ac7b2c 100644 --- a/source/blender/python/bmesh/bmesh_py_types_customdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c @@ -1130,7 +1130,7 @@ PyObject *BPy_BMLayerItem_GetItem(BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer) ret = PyBytes_FromStringAndSize(mstring->s, mstring->s_len); break; } - case CD_MLOOPUV: { + case CD_PROP_FLOAT2: { if (UNLIKELY(py_ele->bm != py_layer->bm)) { PyErr_SetString(PyExc_ValueError, "BMElem[layer]: layer is from another mesh"); return NULL; |