From: Thomas Geymayer Date: Thu, 9 May 2013 23:11:46 +0000 (+0200) Subject: Use simulation time for spin and timed animations X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c96d7ae226c3ec48c2260dbe40feae023c4a00a5;p=simgear.git Use simulation time for spin and timed animations --- 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 {