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:
authorMartijn Versteegh <blender@aaltjegron.nl>2022-11-08 16:07:27 +0300
committerMartijn Versteegh <blender@aaltjegron.nl>2022-11-08 16:07:27 +0300
commit8a28d9129a9c905c43a8cde3aeeb2d10395dcac4 (patch)
tree0ed11bdaa1540a611d42c984bf2ee8c99a880d40 /source/blender/python/bmesh/bmesh_py_types_customdata.c
parent401b3d316a5d9898b37eb7d6c29aec44922b07e3 (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.c2
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;