Revision: 44264 http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44264 Author: genscher Date: 2012-02-19 20:59:46 +0000 (Sun, 19 Feb 2012) Log Message: ----------- Bugfix: Copy paste induced bug found by Sv. Lockal.
Thank you for pointing this out! Modified Paths: -------------- trunk/blender/intern/smoke/intern/FLUID_3D.cpp Modified: trunk/blender/intern/smoke/intern/FLUID_3D.cpp =================================================================== --- trunk/blender/intern/smoke/intern/FLUID_3D.cpp 2012-02-19 20:41:12 UTC (rev 44263) +++ trunk/blender/intern/smoke/intern/FLUID_3D.cpp 2012-02-19 20:59:46 UTC (rev 44264) @@ -1106,7 +1106,7 @@ 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; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs