Fix T88715: particle size influence texture not working for 'keyed' or 'none' physics types
This was reported for the special case of mapping with "Strand / Particle" coords, but was not working with other coordinates either. Dont see a reason for not supporting Size influence textures for these kinds of particles (and since these types of particles have an "age" like all others as well, even the "Strand / Particle" coords are supported here as well) Maniphest Tasks: T88715 Differential Revision: https://developer.blender.org/D11449
This commit is contained in:
@@ -4912,9 +4912,12 @@ void particle_system_update(struct Depsgraph *depsgraph,
|
||||
sim.psmd->flag |= eParticleSystemFlag_Pars;
|
||||
}
|
||||
|
||||
ParticleTexture ptex;
|
||||
|
||||
LOOP_EXISTING_PARTICLES
|
||||
{
|
||||
pa->size = part->size;
|
||||
psys_get_texture(&sim, pa, &ptex, PAMAP_SIZE, cfra);
|
||||
pa->size = part->size * ptex.size;
|
||||
if (part->randsize > 0.0f) {
|
||||
pa->size *= 1.0f - part->randsize * psys_frand(psys, p + 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user