Fix error accessing a named UV layer when baking

This commit is contained in:
Campbell Barton 2019-08-25 16:40:34 +10:00
parent 755c11c3db
commit 6917ac06a2
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ void RE_bake_pixels_populate(Mesh *me,
}
else {
int uv_id = CustomData_get_named_layer(&me->ldata, CD_MLOOPUV, uv_layer);
mloopuv = CustomData_get_layer_n(&me->ldata, CD_MTFACE, uv_id);
mloopuv = CustomData_get_layer_n(&me->ldata, CD_MLOOPUV, uv_id);
}
if (mloopuv == NULL) {