Particles bug fix: using virtual parents for child particles crashed in some cases.
authorJanne Karhu <jhkarh@gmail.com>
Fri, 25 Dec 2009 22:58:11 +0000 (22:58 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 25 Dec 2009 22:58:11 +0000 (22:58 +0000)
source/blender/blenkernel/intern/particle.c

index 1968673e56801d9220d5ec4dbdd6acbd010e881f..b19b0f9fa20d7286c9f10c24969d989413af3340 100644 (file)
@@ -2444,7 +2444,7 @@ static void psys_thread_create_path(ParticleThread *thread, struct ChildParticle
                        mul_m4_v3(ob->obmat,cpa_1st);
                }
 
-               pa = psys->particles + cpa->parent;
+               pa = psys->particles + cpa->pa[0];
 
                psys_mat_hair_to_global(ob, ctx->sim.psmd->dm, psys->part->from, pa, hairmat);