Revision: 44266 http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44266 Author: genscher Date: 2012-02-19 21:15:12 +0000 (Sun, 19 Feb 2012) Log Message: ----------- Bugfix (missed one code line): 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 21:07:32 UTC (rev 44265) +++ trunk/blender/intern/smoke/intern/FLUID_3D.cpp 2012-02-19 21:15:12 UTC (rev 44266) @@ -1152,7 +1152,7 @@ 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; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs