Fix #106628: Use correct function to get active uv layer
CustomData_get_active_layer_index() was used by accident. But that returns the CustomData layer index (in all layers) as opposed to CustomData_get_active_layer(), which returns the active UV layer. Pull Request: https://projects.blender.org/blender/blender/pulls/106644
This commit is contained in:
committed by
Martijn Versteegh
parent
972dad8fbf
commit
3681ed377b
@@ -47,7 +47,7 @@ BMUVOffsets BM_uv_map_get_offsets_n(const BMesh *bm, const int layer)
|
||||
BMUVOffsets BM_uv_map_get_offsets(const BMesh *bm)
|
||||
{
|
||||
return BM_uv_map_get_offsets_n(bm,
|
||||
CustomData_get_active_layer_index(&bm->ldata, CD_PROP_FLOAT2));
|
||||
CustomData_get_active_layer(&bm->ldata, CD_PROP_FLOAT2));
|
||||
}
|
||||
|
||||
static void uv_aspect(const BMLoop *l,
|
||||
|
||||
Reference in New Issue
Block a user