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>2020-10-22 06:08:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-22 06:08:07 +0300
commit608243c79c4b2f6d494391834dcfd583afc3dfe3 (patch)
treea2f9841b8a42815f1db16fdc30cb4cc1376f31f3 /source/blender/python
parentf5080c82dd915db6c7b9dd68a52aaaccf2600137 (diff)
parentc70650785bffb5f111c3c81c7c37dff4d5a9a446 (diff)
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/mathutils/mathutils_noise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c
index eece782f6d0..49a3f114ebb 100644
--- a/source/blender/python/mathutils/mathutils_noise.c
+++ b/source/blender/python/mathutils/mathutils_noise.c
@@ -140,11 +140,11 @@ static void next_state(void)
left = N;
next = state;
- for (j = N - M + 1; j--; p++) {
+ for (j = N - M + 1; --j; p++) {
*p = p[M] ^ TWIST(p[0], p[1]);
}
- for (j = M; j--; p++) {
+ for (j = M; --j; p++) {
*p = p[M - N] ^ TWIST(p[0], p[1]);
}