Fix T43409: Particle instancing on hair sometimes doesn't have a path

cache available.
This commit is contained in:
Lukas Tönne 2015-01-26 14:57:01 +01:00
parent 895fa8bc79
commit 4013ae6382
Notes: blender-bot 2023-02-14 09:34:22 +01:00
Referenced by issue #43409, blender crashes during particle render
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,7 @@ static void make_duplis_particle_system(const DupliContext *ctx, ParticleSystem
}
/* some hair paths might be non-existent so they can't be used for duplication */
if (hair &&
if (hair && psys->pathcache &&
((a < totpart && psys->pathcache[a]->segments < 0) ||
(a >= totpart && psys->childcache[a - totpart]->segments < 0)))
{