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:
-rw-r--r--source/blender/blenkernel/intern/particle_system.c8
-rw-r--r--source/blender/blenlib/BLI_math_geom.h2
-rw-r--r--source/blender/blenlib/intern/math_geom.c2
3 files changed, 6 insertions, 6 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))
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h
index 4f8810d50e1..534c25f6e01 100644
--- a/source/blender/blenlib/BLI_math_geom.h
+++ b/source/blender/blenlib/BLI_math_geom.h
@@ -645,7 +645,7 @@ void orthographic_m4(float mat[4][4],
const float farClip);
void window_translate_m4(float winmat[4][4], float perspmat[4][4], const float x, const float y);
-void planes_from_projmat(float mat[4][4],
+void planes_from_projmat(const float mat[4][4],
float left[4],
float right[4],
float top[4],
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index ba2a8605dec..a17fecca303 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -4711,7 +4711,7 @@ void window_translate_m4(float winmat[4][4], float perspmat[4][4], const float x
*
* plane parameters can be NULL if you do not need them.
*/
-void planes_from_projmat(float mat[4][4],
+void planes_from_projmat(const float mat[4][4],
float left[4],
float right[4],
float top[4],