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:
parent
51f6fa249f
commit
a29b0a2f76
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user