Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-18 16:19:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-18 16:21:50 +0300
commit838dc349caa49ba65a1a5fb7bbb58f416fb933e6 (patch)
treebe947688eab17c3c115bf01a090674b329f99b4e /source/blender/blenkernel/intern/particle_system.c
parent61f4a7d1f593e3870e7a0df4b32e95516b236eef (diff)
Cleanup: const warning, unused var
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 17195d8c6c3..34f2aa73817 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4148,7 +4148,9 @@ static void particles_fluid_step(ParticleSimulationData *sim,
psys->totpart = 0;
}
-#ifdef WITH_FLUID
+#ifndef WITH_FLUID
+ UNUSED_VARS(use_render_params, cfra);
+#else
{
Object *ob = sim->ob;
FluidModifierData *mmd = (FluidModifierData *)modifiers_findByType(ob, eModifierType_Fluid);
@@ -4400,9 +4402,7 @@ static void particles_fluid_step(ParticleSimulationData *sim,
} /* Fluid sim particles done. */
}
-#else
- UNUSED_VARS(use_render_params);
-#endif // WITH_FLUID
+#endif /* WITH_FLUID */
}
static int emit_particles(ParticleSimulationData *sim, PTCacheID *pid, float UNUSED(cfra))