diff --git a/src/Time/TimeManager.cxx b/src/Time/TimeManager.cxx index 9fdca4c99..36312b532 100644 --- a/src/Time/TimeManager.cxx +++ b/src/Time/TimeManager.cxx @@ -108,6 +108,20 @@ void TimeManager::init() _frameCount = 0; } +void TimeManager::unbind() +{ + _maxDtPerFrame.clear(); + _clockFreeze.clear(); + _timeOverride.clear(); + _warp.clear(); + _warpDelta.clear(); + _frameRate.clear(); + _frameLatency.clear(); + _frameRateWorst.clear(); + + // and the property objects too +} + void TimeManager::postinit() { initTimeOffset(); diff --git a/src/Time/TimeManager.hxx b/src/Time/TimeManager.hxx index 9eb40980b..46d3f9ed6 100644 --- a/src/Time/TimeManager.hxx +++ b/src/Time/TimeManager.hxx @@ -40,6 +40,8 @@ public: virtual void postinit(); virtual void shutdown(); + virtual void unbind(); + void update(double dt); // SGPropertyChangeListener overrides