forked from bartvdbraak/blender
Fix T43409: Particle instancing on hair sometimes doesn't have a path
cache available.
This commit is contained in:
parent
895fa8bc79
commit
4013ae6382
@ -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 */
|
/* 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->pathcache[a]->segments < 0) ||
|
||||||
(a >= totpart && psys->childcache[a - totpart]->segments < 0)))
|
(a >= totpart && psys->childcache[a - totpart]->segments < 0)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user