forked from bartvdbraak/blender
Cycles: Fix for particle info node crash: The particle 'alive' state can be set to 'dying', which is just an indicator that the particle will be removed, but it is is used for instancing. This would lead to insufficient texture size and assert crash.
This commit is contained in:
parent
3ca3102bcf
commit
2694b68d4a
@ -111,7 +111,8 @@ static bool use_particle_system(BL::ParticleSystem b_psys)
|
||||
|
||||
static bool use_particle(BL::Particle b_pa)
|
||||
{
|
||||
return b_pa.is_exist() && b_pa.is_visible() && b_pa.alive_state()==BL::Particle::alive_state_ALIVE;
|
||||
return b_pa.is_exist() && b_pa.is_visible() &&
|
||||
(b_pa.alive_state()==BL::Particle::alive_state_ALIVE || b_pa.alive_state()==BL::Particle::alive_state_DYING);
|
||||
}
|
||||
|
||||
static int psys_count_particles(BL::ParticleSystem b_psys)
|
||||
|
Loading…
Reference in New Issue
Block a user