Replaced frame delta computation that was originally based on a local static variable, replacing it with member variable to tracking the previous frame time. This fixes a bug in the wind computation when multiple PrecipitaionEffects are in the scene.

This commit is contained in:
Robert Osfield
2009-06-11 14:56:54 +00:00
parent e5a436b131
commit 27cf68b22d
2 changed files with 8 additions and 4 deletions

View File

@@ -256,6 +256,8 @@ namespace osgParticle
osg::Vec3 _inverse_dv;
osg::Vec3 _inverse_dw;
double _previousFrameTime;
};
}