From Brad Anderegg, add _frameNumber and associated code to ensure that particles

only get updated once per frame.
This commit is contained in:
Robert Osfield
2006-02-04 21:12:45 +00:00
parent 83add79c07
commit 3baf9f51d2
4 changed files with 72 additions and 46 deletions

View File

@@ -167,6 +167,10 @@ namespace osgParticle
double _startTime;
double _currentTime;
double _resetTime;
//added- 1/17/06- bgandere@nps.edu
//a var to keep from doing multiple updates
int _frameNumber;
};
// INLINE FUNCTIONS