Skip to content
Snippets Groups Projects
Commit 3a67e910 authored by Josh Bell's avatar Josh Bell
Browse files
parent ea8fb723
No related branches found
No related tags found
No related merge requests found
......@@ -427,9 +427,10 @@ void LLMotionController::updateMotionsByType(LLMotion::LLMotionBlendType anim_ty
// iterate through active motions in chronological order
for (motion_list_t::iterator iter = mActiveMotions.begin();
iter != mActiveMotions.end(); ++iter)
iter != mActiveMotions.end(); )
{
LLMotion* motionp = *iter;
motion_list_t::iterator curiter = iter++;
LLMotion* motionp = *curiter;
if (motionp->getBlendType() != anim_type)
{
continue;
......@@ -842,9 +843,10 @@ void LLMotionController::flushAllMotions()
std::vector<std::pair<LLUUID,F32> > active_motions;
active_motions.reserve(mActiveMotions.size());
for (motion_list_t::iterator iter = mActiveMotions.begin();
iter != mActiveMotions.end(); ++iter)
iter != mActiveMotions.end(); )
{
LLMotion* motionp = *iter;
motion_list_t::iterator curiter = iter++;
LLMotion* motionp = *curiter;
F32 dtime = mTime - motionp->mActivationTimestamp;
active_motions.push_back(std::make_pair(motionp->getID(),dtime));
motionp->deactivate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment