diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 09:40:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 09:40:35 +0400 |
commit | 98c574e41a8c2cd9ecb0d25afef8578c3e79289b (patch) | |
tree | 3b4c100e8bc38ac9ecddcc86e0572d8af1fec816 /source/blender/modifiers/intern/MOD_ocean.c | |
parent | a62163ada389a18d11f0c085654916e2ef069a46 (diff) |
use 'greater/less then or equal to' operators rather then adding 1.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_ocean.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_ocean.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_ocean.c b/source/blender/modifiers/intern/MOD_ocean.c index 5fdd17b5167..40a4d5e0986 100644 --- a/source/blender/modifiers/intern/MOD_ocean.c +++ b/source/blender/modifiers/intern/MOD_ocean.c @@ -318,8 +318,8 @@ static DerivedMesh *generate_ocean_geometry(OceanModifierData *omd) /* create vertices */ #pragma omp parallel for private(x, y) if (rx > OMP_MIN_RES) - for (y = 0; y < res_y + 1; y++) { - for (x = 0; x < res_x + 1; x++) { + for (y = 0; y <= res_y; y++) { + for (x = 0; x <= res_x; x++) { const int i = y * (res_x + 1) + x; float *co = mverts[i].co; co[0] = ox + (x * sx); |