[Bf-blender-cvs] [9fa221e0f85] refactor-mesh-uv-map-generic: Fix the creation of BPy_BMLoopUV python object.
Martijn Versteegh
noreply at git.blender.org
Tue Nov 8 14:13:39 CET 2022
Commit: 9fa221e0f85f49f8dd17d8b9f5832236c977de51
Author: Martijn Versteegh
Date: Tue Nov 8 14:10:07 2022 +0100
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB9fa221e0f85f49f8dd17d8b9f5832236c977de51
Fix the creation of BPy_BMLoopUV python object.
===================================================================
M source/blender/python/bmesh/bmesh_py_types_meshdata.c
===================================================================
diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
index a7dff0d43a9..c6df53a734c 100644
--- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
@@ -178,11 +178,10 @@ PyObject *BPy_BMLoopUV_CreatePyObject(struct BMesh *bm, const int loop_index)
const BMUVOffsets offsets = BM_uv_map_get_offsets(bm);
BMLoop *l = BM_loop_at_index_find(bm, loop_index);
- float *luv = BM_ELEM_CD_GET_FLOAT_P(l, offsets.uv);
+ self->uv = BM_ELEM_CD_GET_FLOAT_P(l, offsets.uv);
self->vertsel = BM_ELEM_CD_GET_OPT_BOOL_P(l, offsets.select_vert);
self->edgesel = BM_ELEM_CD_GET_OPT_BOOL_P(l, offsets.select_edge);
self->pinned = BM_ELEM_CD_GET_OPT_BOOL_P(l, offsets.pin);
- copy_v2_v2(self->uv, luv);
return (PyObject *)self;
}
More information about the Bf-blender-cvs
mailing list