From 4013ae63821a455ac25bd1d588321caac8bf8849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Mon, 26 Jan 2015 14:57:01 +0100 Subject: [PATCH] Fix T43409: Particle instancing on hair sometimes doesn't have a path cache available. --- source/blender/blenkernel/intern/object_dupli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/object_dupli.c b/source/blender/blenkernel/intern/object_dupli.c index 057f9999fac..c77f65f69e1 100644 --- a/source/blender/blenkernel/intern/object_dupli.c +++ b/source/blender/blenkernel/intern/object_dupli.c @@ -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))) {