diff options
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 adf43a29790..9f036cc6d2f 100644 --- a/intern/smoke/intern/FLUID_3D.cpp +++ b/intern/smoke/intern/FLUID_3D.cpp @@ -1152,7 +1152,7 @@ void FLUID_3D::addVorticity(int zBegin, int zEnd) float dz = (out == vIndex || in == vIndex) ? 1.0f / _dx : gridSize; int right = _obstacles[index + 1] ? vIndex : vIndex + 1; int left = _obstacles[index - 1] ? vIndex : vIndex - 1; - float dx = (right == vIndex || right == vIndex) ? 1.0f / _dx : gridSize; + float dx = (right == vIndex || left == vIndex) ? 1.0f / _dx : gridSize; N[0] = (_vorticity[right] - _vorticity[left]) * dx; N[1] = (_vorticity[up] - _vorticity[down]) * dy; N[2] = (_vorticity[out] - _vorticity[in]) * dz; |