[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44266] trunk/blender/intern/smoke/intern/ FLUID_3D.cpp: Bugfix (missed one code line): Copy paste induced bug found by Sv.
Daniel Genrich
daniel.genrich at gmx.net
Sun Feb 19 22:15:20 CET 2012
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;
More information about the Bf-blender-cvs
mailing list