Durr, missed a line when adding attached light muting. Clobbered when diffing. Incrementing in a for loop is kinda important! Our handling in this function differes from LL in the firstplace because they are performing iteration on an iterator that can be invalid after the erase.
This commit is contained in:
@@ -1467,6 +1467,7 @@ void LLPipeline::removeMutedAVsLights(LLVOAvatar* muted_avatar)
|
||||
gPipeline.mLights.erase(iter->drawable);
|
||||
gPipeline.mNearbyLights.erase(iter++);
|
||||
}
|
||||
else ++iter;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user