From 617557b08ea94e2b65a1697ddf0b79651204d92b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 1 Apr 2014 11:34:00 +1100 Subject: Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define --- source/blender/modifiers/intern/MOD_ocean.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_ocean.c') diff --git a/source/blender/modifiers/intern/MOD_ocean.c b/source/blender/modifiers/intern/MOD_ocean.c index e5d9a9dae0e..91b1b2cbbca 100644 --- a/source/blender/modifiers/intern/MOD_ocean.c +++ b/source/blender/modifiers/intern/MOD_ocean.c @@ -64,7 +64,7 @@ static void clear_cache_data(struct OceanModifierData *omd) { BKE_free_ocean_cache(omd->oceancache); omd->oceancache = NULL; - omd->cached = FALSE; + omd->cached = false; } /* keep in sync with init_ocean_modifier_bake(), object_modifier.c */ @@ -74,7 +74,7 @@ static void init_ocean_modifier(struct OceanModifierData *omd) if (!omd || !omd->ocean) return; - do_heightfield = TRUE; + do_heightfield = true; do_chop = (omd->chop_amount > 0); do_normals = (omd->flag & MOD_OCEAN_GENERATE_NORMALS); do_jacobian = (omd->flag & MOD_OCEAN_GENERATE_FOAM); @@ -442,7 +442,7 @@ static DerivedMesh *doOcean(ModifierData *md, Object *ob, omd->refresh = 0; /* do ocean simulation */ - if (omd->cached == TRUE) { + if (omd->cached == true) { if (!omd->oceancache) init_cache_data(ob, omd); BKE_simulate_ocean_cache(omd->oceancache, md->scene->r.cfra); } @@ -495,7 +495,7 @@ static DerivedMesh *doOcean(ModifierData *md, Object *ob, const float u = OCEAN_CO(size_co_inv, co[0]); const float v = OCEAN_CO(size_co_inv, co[1]); - if (omd->oceancache && omd->cached == TRUE) { + if (omd->oceancache && omd->cached == true) { BKE_ocean_cache_eval_uv(omd->oceancache, &ocr, cfra, u, v); foam = ocr.foam; CLAMP(foam, 0.0f, 1.0f); @@ -523,7 +523,7 @@ static DerivedMesh *doOcean(ModifierData *md, Object *ob, const float u = OCEAN_CO(size_co_inv, mv->co[0]); const float v = OCEAN_CO(size_co_inv, mv->co[1]); - if (omd->oceancache && omd->cached == TRUE) + if (omd->oceancache && omd->cached == true) BKE_ocean_cache_eval_uv(omd->oceancache, &ocr, cfra, u, v); else BKE_ocean_eval_uv(omd->ocean, &ocr, u, v); -- cgit v1.2.3