Fix particle instance modifier generating NaN polygons in some cases

Particles that don't exist should not be used, for example due to a
density texture.

Differential Revision: https://developer.blender.org/D6561
This commit is contained in:
Miguel Pozo
2020-01-27 17:36:50 +01:00
committed by Brecht Van Lommel
parent f4f57ed21a
commit 6bf0e9dbb1

View File

@@ -164,6 +164,9 @@ static bool particle_skip(ParticleInstanceModifierData *pimd, ParticleSystem *ps
if (pa->alive == PARS_DEAD && (pimd->flag & eParticleInstanceFlag_Dead) == 0) {
return true;
}
if (pa->flag & (PARS_UNEXIST | PARS_NO_DISP)) {
return true;
}
}
if (pimd->particle_amount == 1.0f) {