[Bf-blender-cvs] [3733be8731d] blender2.8: Cleanup: nuke G.main from BKE's particle_system.c
Bastien Montagne
noreply at git.blender.org
Fri Jun 29 12:48:23 CEST 2018
Commit: 3733be8731df978ec50cd283ff24b813bdd89df1
Author: Bastien Montagne
Date: Fri Jun 29 11:24:58 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3733be8731df978ec50cd283ff24b813bdd89df1
Cleanup: nuke G.main from BKE's particle_system.c
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index e8dbf95e286..8f94c7b3c8d 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -3814,7 +3814,7 @@ static void cached_step(ParticleSimulationData *sim, float cfra, const bool use_
}
static void particles_fluid_step(
- Main *bmain, ParticleSimulationData *sim, int UNUSED(cfra), const bool use_render_params)
+ ParticleSimulationData *sim, int UNUSED(cfra), const bool use_render_params)
{
ParticleSystem *psys = sim->psys;
if (psys->particles) {
@@ -3845,7 +3845,7 @@ static void particles_fluid_step(
// ok, start loading
BLI_join_dirfile(filename, sizeof(filename), fss->surfdataPath, OB_FLUIDSIM_SURF_PARTICLES_FNAME);
- BLI_path_abs(filename, modifier_path_relbase(bmain, sim->ob));
+ BLI_path_abs(filename, modifier_path_relbase_from_global(sim->ob));
BLI_path_frame(filename, curFrame, 0); // fixed #frame-no
@@ -3919,7 +3919,7 @@ static void particles_fluid_step(
} // fluid sim particles done
}
#else
- UNUSED_VARS(bmain, use_render_params);
+ UNUSED_VARS(use_render_params);
#endif // WITH_MOD_FLUID
}
@@ -4307,7 +4307,7 @@ void particle_system_update(struct Depsgraph *depsgraph, Scene *scene, Object *o
}
case PART_FLUID:
{
- particles_fluid_step(G.main /* Yuck :/ */, &sim, (int)cfra, use_render_params);
+ particles_fluid_step(&sim, (int)cfra, use_render_params);
break;
}
default:
More information about the Bf-blender-cvs
mailing list