From c96d7ae226c3ec48c2260dbe40feae023c4a00a5 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Fri, 10 May 2013 01:11:46 +0200 Subject: [PATCH] Use simulation time for spin and timed animations --- simgear/scene/model/animation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 649cc108..fa9931a4 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -850,7 +850,7 @@ void SpinAnimCallback::operator()(osg::Node* node, osg::NodeVisitor* nv) if (!cv) return; if (!_condition || _condition->test()) { - double t = nv->getFrameStamp()->getReferenceTime(); + double t = nv->getFrameStamp()->getSimulationTime(); double rps = _animationValue->getValue() / 60.0; ref_ptr refval(static_cast(_referenceValues.get())); @@ -1862,7 +1862,7 @@ public: _current_index = _current_index % nChildren; // update the time and compute the current systems time value - double t = nv->getFrameStamp()->getReferenceTime(); + double t = nv->getFrameStamp()->getSimulationTime(); if (_last_time_sec == SGLimitsd::max()) { _last_time_sec = t; } else { -- 2.39.5