From a8f40e077101a8d26cb6f98b0ac136d9a5cf3970 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 6 Nov 2002 16:04:04 +0000 Subject: [PATCH] Fixed bug in timed update cycling. --- src/Model/model.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/model.cxx b/src/Model/model.cxx index b32d054ee..895923bf9 100644 --- a/src/Model/model.cxx +++ b/src/Model/model.cxx @@ -507,10 +507,9 @@ TimedAnimation::update () float sim_time_sec = globals->get_sim_time_sec(); if ((sim_time_sec - _last_time_sec) >= _duration_sec) { _last_time_sec = sim_time_sec; + _step++; if (_step >= getBranch()->getNumKids()) _step = 0; - else - _step++; ((ssgSelector *)getBranch())->selectStep(_step); } } -- 2.39.5