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>2011-04-28 09:19:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-28 09:19:17 +0400
commitf280f8384f839bdf0de7916e8c7f4737e16b3c21 (patch)
tree278ded975787641fa1743497c575d307a36fa414 /source/blender/modifiers/intern/MOD_wave.c
parentfca91f550bdd301850eeae0c936e0df83006742c (diff)
fix [#27186] Wave modifier falloff
regression from 2.4x (own fault)
Diffstat (limited to 'source/blender/modifiers/intern/MOD_wave.c')
-rw-r--r--source/blender/modifiers/intern/MOD_wave.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_wave.c b/source/blender/modifiers/intern/MOD_wave.c
index 6d547867ed8..df3a7f80490 100644
--- a/source/blender/modifiers/intern/MOD_wave.c
+++ b/source/blender/modifiers/intern/MOD_wave.c
@@ -352,6 +352,7 @@ static void waveModifier_do(WaveModifierData *md,
}
falloff_fac = (1.0f - (dist * falloff_inv));
+ CLAMP(falloff_fac, 0.0f, 1.0f);
if(wmd->flag & MOD_WAVE_X) {
if(wmd->flag & MOD_WAVE_Y) amplit = (float)sqrt(x*x + y*y);