Fix (unreported) wrong hair vertex colors
This was already fixed in rB985f33719ce9 once. But resurfaced after rB7070e4c15e6c [which just reverted a bit too much ;)]. Spotted while looking into T75263. Differential Revision: https://developer.blender.org/D7308
This commit is contained in:
parent
ccaf6c7404
commit
cc0819aee1
@ -339,7 +339,8 @@ static void particle_calculate_parent_mcol(ParticleSystem *psys,
|
||||
if (num != DMCACHE_NOTFOUND && num != DMCACHE_ISCHILD) {
|
||||
MFace *mface = &psmd->mesh_final->mface[num];
|
||||
for (int j = 0; j < num_col_layers; j++) {
|
||||
psys_interpolate_mcol(mcols[j] + num, mface->v4, particle->fuv, &r_mcol[j]);
|
||||
/* CustomDataLayer CD_MCOL has 4 structs per face. */
|
||||
psys_interpolate_mcol(mcols[j] + num * 4, mface->v4, particle->fuv, &r_mcol[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -388,6 +389,7 @@ static void particle_interpolate_children_mcol(ParticleSystem *psys,
|
||||
if (num != DMCACHE_NOTFOUND) {
|
||||
MFace *mface = &psmd->mesh_final->mface[num];
|
||||
for (int j = 0; j < num_col_layers; j++) {
|
||||
/* CustomDataLayer CD_MCOL has 4 structs per face. */
|
||||
psys_interpolate_mcol(mcols[j] + num * 4, mface->v4, particle->fuv, &r_mcol[j]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user