diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-11 10:38:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-11 10:39:28 +0300 |
commit | d4934f8f6d8d2da457adb6dd32047eb1627459a0 (patch) | |
tree | 246012077cd959563ca372767c319dbbc3345f50 /source/blender/blenlib/intern | |
parent | 387d91829d787ac96afbb2b3f86899e0e3346222 (diff) |
cleanup: style/indentation
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index f002ea54b32..5febf720b30 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -278,8 +278,8 @@ static float npfade(float t) static float grad(int hash_val, float x, float y, float z) { int h = hash_val & 15; /* CONVERT LO 4 BITS OF HASH CODE */ - float u = h < 8 ? x : y, /* INTO 12 GRADIENT DIRECTIONS. */ - v = h < 4 ? y : h == 12 || h == 14 ? x : z; + float u = h < 8 ? x : y; /* INTO 12 GRADIENT DIRECTIONS. */ + float v = h < 4 ? y : h == 12 || h == 14 ? x : z; return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v); } |