From Pierre Haritchabalet, "In IO_FluidProgram.cpp, FluidProgram_readLocalData() function is wrong. When density parameter is read, the function "setFluidViscosity()" is called instead of "setFluidDensity()".

This patch fixes osg plug'in FluidProgram_readLocalData. "
This commit is contained in:
Robert Osfield 2009-02-10 18:56:53 +00:00
parent 51f6fa249f
commit a29b0a2f76

View File

@ -49,7 +49,7 @@ bool FluidProgram_readLocalData(osg::Object &obj, osgDB::Input &fr)
if (fr[0].matchWord("density")) { if (fr[0].matchWord("density")) {
if (fr[1].getFloat(f)) { if (fr[1].getFloat(f)) {
myobj.setFluidViscosity(f); myobj.setFluidDensity(f);
fr += 2; fr += 2;
itAdvanced = true; itAdvanced = true;
} }