From b9cc1f7590a2dd4d473900d20369015f0bb80778 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 13 Nov 2011 16:38:14 +0000 Subject: [PATCH] Quiting a warning in Ocean code (commenting out var). --- source/blender/blenkernel/intern/ocean.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/intern/ocean.c b/source/blender/blenkernel/intern/ocean.c index 76b5d37bad8..7ce8ec69845 100644 --- a/source/blender/blenkernel/intern/ocean.c +++ b/source/blender/blenkernel/intern/ocean.c @@ -1204,7 +1204,7 @@ void BKE_bake_ocean(struct Ocean *o, struct OceanCache *och, void (*update_cb)(v /* add new foam */ for (y=0; y < res_y; y++) { for (x=0; x < res_x; x++) { - float r, pr=0.0f, foam_result; + float /*r,*/ /* UNUSED */ pr=0.0f, foam_result; float neg_disp, neg_eplus; BKE_ocean_eval_ij(o, &ocr, x, y); @@ -1218,7 +1218,7 @@ void BKE_bake_ocean(struct Ocean *o, struct OceanCache *och, void (*update_cb)(v if (i>0) pr = prev_foam[res_x*y + x]; - r = BLI_frand(); // randomly reduce foam + /* r = BLI_frand(); */ /* UNUSED */ // randomly reduce foam //pr = pr * och->foam_fade; // overall fade