Revision: 7054 http://playerstage.svn.sourceforge.net/playerstage/?rev=7054&view=rev Author: gerkey Date: 2008-09-30 17:07:00 +0000 (Tue, 30 Sep 2008)
Log Message: ----------- reordered model updates to do moving models before others Modified Paths: -------------- code/stage/branches/stage-ros/libstage/world.cc Modified: code/stage/branches/stage-ros/libstage/world.cc =================================================================== --- code/stage/branches/stage-ros/libstage/world.cc 2008-09-29 21:00:01 UTC (rev 7053) +++ code/stage/branches/stage-ros/libstage/world.cc 2008-09-30 17:07:00 UTC (rev 7054) @@ -394,15 +394,15 @@ if( paused ) return false; + + // update any models with non-zero velocity + for( GList* it=this->velocity_list; it; it=it->next ) + ((StgModel*)it->data)->UpdatePose(); // update any models that are due to be updated for( GList* it=this->update_list; it; it=it->next ) ((StgModel*)it->data)->UpdateIfDue(); - // update any models with non-zero velocity - for( GList* it=this->velocity_list; it; it=it->next ) - ((StgModel*)it->data)->UpdatePose(); - this->sim_time += this->interval_sim; this->updates++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit