From a29b0a2f76924a70d41822e382ec4e8107aeb23a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 10 Feb 2009 18:56:53 +0000 Subject: [PATCH] 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. " --- src/osgPlugins/osgParticle/IO_FluidProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/osgParticle/IO_FluidProgram.cpp b/src/osgPlugins/osgParticle/IO_FluidProgram.cpp index 9deda848b..50b84f39d 100644 --- a/src/osgPlugins/osgParticle/IO_FluidProgram.cpp +++ b/src/osgPlugins/osgParticle/IO_FluidProgram.cpp @@ -49,7 +49,7 @@ bool FluidProgram_readLocalData(osg::Object &obj, osgDB::Input &fr) if (fr[0].matchWord("density")) { if (fr[1].getFloat(f)) { - myobj.setFluidViscosity(f); + myobj.setFluidDensity(f); fr += 2; itAdvanced = true; }