minor c90 compat edits. (no functional changes).
This commit is contained in:
@@ -1705,9 +1705,10 @@ void reset_particle(ParticleSimulationData *sim, ParticleData *pa, float dtime,
|
||||
r_phase = PSYS_FRAND(p + 20);
|
||||
|
||||
if(part->from==PART_FROM_PARTICLE){
|
||||
ParticleSimulationData tsim = {sim->scene, psys->target_ob ? psys->target_ob : ob, NULL, NULL};
|
||||
float speed;
|
||||
|
||||
ParticleSimulationData tsim= {0};
|
||||
tsim.scene= sim->scene;
|
||||
tsim.ob= psys->target_ob ? psys->target_ob : ob;
|
||||
tsim.psys = BLI_findlink(&tsim.ob->particlesystem, sim->psys->target_psys-1);
|
||||
|
||||
state.time = pa->time;
|
||||
@@ -2057,12 +2058,14 @@ void psys_count_keyed_targets(ParticleSimulationData *sim)
|
||||
static void set_keyed_keys(ParticleSimulationData *sim)
|
||||
{
|
||||
ParticleSystem *psys = sim->psys;
|
||||
ParticleSimulationData ksim = {sim->scene, NULL, NULL, NULL};
|
||||
ParticleSimulationData ksim= {0};
|
||||
ParticleTarget *pt;
|
||||
PARTICLE_P;
|
||||
ParticleKey *key;
|
||||
int totpart = psys->totpart, k, totkeys = psys->totkeyed;
|
||||
|
||||
ksim.scene= sim->scene;
|
||||
|
||||
/* no proper targets so let's clear and bail out */
|
||||
if(psys->totkeyed==0) {
|
||||
free_keyed_keys(psys);
|
||||
@@ -3989,7 +3992,7 @@ static int hair_needs_recalc(ParticleSystem *psys)
|
||||
* then advances in to actual particle calculations depending on particle type */
|
||||
void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
|
||||
{
|
||||
ParticleSimulationData sim = {scene, ob, psys, NULL, NULL};
|
||||
ParticleSimulationData sim= {0};
|
||||
ParticleSettings *part = psys->part;
|
||||
float cfra;
|
||||
|
||||
@@ -4000,6 +4003,10 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
|
||||
return;
|
||||
|
||||
cfra= BKE_curframe(scene);
|
||||
|
||||
sim.scene= scene;
|
||||
sim.ob= ob;
|
||||
sim.psys= psys;
|
||||
sim.psmd= psys_get_modifier(ob, psys);
|
||||
|
||||
/* system was already updated from modifier stack */
|
||||
|
||||
Reference in New Issue
Block a user