diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2012-02-20 00:59:46 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2012-02-20 00:59:46 +0400 |
commit | 49b1d14aeeb1c81943e975a905b1d67df1162bd2 (patch) | |
tree | 837ce0781150b69352216d25a6cb450d1eb32616 /intern/smoke | |
parent | 56e41a3ef0a3b80862018753cc4c3ac7247e82b0 (diff) |
Bugfix: Copy paste induced bug found by Sv. Lockal.
Thank you for pointing this out!
Diffstat (limited to 'intern/smoke')
-rw-r--r-- | intern/smoke/intern/FLUID_3D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/smoke/intern/FLUID_3D.cpp b/intern/smoke/intern/FLUID_3D.cpp index d688dbf1dfa..adf43a29790 100644 --- a/intern/smoke/intern/FLUID_3D.cpp +++ b/intern/smoke/intern/FLUID_3D.cpp @@ -1106,7 +1106,7 @@ void FLUID_3D::addVorticity(int zBegin, int zEnd) float dz = (out == index || in == index) ? 1.0f / _dx : gridSize; int right = _obstacles[index + 1] ? index : index + 1; int left = _obstacles[index - 1] ? index : index - 1; - float dx = (right == index || right == index) ? 1.0f / _dx : gridSize; + float dx = (right == index || left == index) ? 1.0f / _dx : gridSize; _xVorticity[vIndex] = (_zVelocity[up] - _zVelocity[down]) * dy + (-_yVelocity[out] + _yVelocity[in]) * dz; _yVorticity[vIndex] = (_xVelocity[out] - _xVelocity[in]) * dz + (-_zVelocity[right] + _zVelocity[left]) * dx; |