Fix T103704: Particle hair doesn't fall back to active UV

Caused by 05952aa94d, which removed the use of the
active tessface UV pointer on meshes but didn't replace it properly with
the equivalend custom data API function.
This commit is contained in:
Hans Goudey 2023-01-20 15:34:13 -06:00
parent 244c87dd68
commit 453724894e
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by issue #103704, Regression: Hair Particles compatibility problem between 3.3.1 and 3.4.1
1 changed files with 3 additions and 1 deletions

View File

@ -4216,7 +4216,9 @@ static int get_particle_uv(Mesh *mesh,
int i;
tf = static_cast<const MTFace *>(CustomData_get_layer_named(&mesh->fdata, CD_MTFACE, name));
if (tf == nullptr) {
tf = static_cast<const MTFace *>(CustomData_get_layer(&mesh->fdata, CD_MTFACE));
}
if (tf == nullptr) {
return 0;
}