Particles: Fix uninitialized child orco passed to modifiers
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 May 2018 13:56:40 +0000 (15:56 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 May 2018 15:20:02 +0000 (17:20 +0200)
Wrong cleanup done in 51b796ff152.

source/blender/blenkernel/intern/particle.c

index 940263ded090c4f359afc9aa928b50d9effb2a35..bda258e7a0b4970dfbc14563b0de3c7d37b8c35f 100644 (file)
@@ -2117,7 +2117,7 @@ static void psys_thread_create_path(ParticleTask *task, struct ChildParticle *cp
                cpa_fuv = cpa->fuv;
                cpa_from = PART_FROM_FACE;
 
-               psys_particle_on_emitter(ctx->sim.psmd, cpa_from, cpa_num, DMCACHE_ISCHILD, cpa->fuv, foffset, co, 0, 0, orco, 0);
+               psys_particle_on_emitter(ctx->sim.psmd, cpa_from, cpa_num, DMCACHE_ISCHILD, cpa->fuv, foffset, co, 0, 0, 0, orco);
 
                mul_m4_v3(ob->obmat, co);
 
@@ -2159,7 +2159,7 @@ static void psys_thread_create_path(ParticleTask *task, struct ChildParticle *cp
                        cpa_num = 0;
                cpa_fuv = pa->fuv;
 
-               psys_particle_on_emitter(ctx->sim.psmd, cpa_from, cpa_num, DMCACHE_ISCHILD, cpa_fuv, pa->foffset, co, 0, 0, orco, 0);
+               psys_particle_on_emitter(ctx->sim.psmd, cpa_from, cpa_num, DMCACHE_ISCHILD, cpa_fuv, pa->foffset, co, 0, 0, 0, orco);
 
                psys_mat_hair_to_global(ob, ctx->sim.psmd->dm_final, psys->part->from, pa, hairmat);
        }