Possible fix for Torric's gesture toggle crash
This commit is contained in:
@@ -1207,6 +1207,8 @@ void LLGestureMgr::stopGesture(LLMultiGesture* gesture)
|
|||||||
{
|
{
|
||||||
gAgent.sendAnimationRequest(anim_id, ANIM_REQUEST_STOP);
|
gAgent.sendAnimationRequest(anim_id, ANIM_REQUEST_STOP);
|
||||||
}
|
}
|
||||||
|
gesture->mRequestedAnimIDs.clear();
|
||||||
|
|
||||||
for (const auto& anim_id : gesture->mPlayingAnimIDs)
|
for (const auto& anim_id : gesture->mPlayingAnimIDs)
|
||||||
{
|
{
|
||||||
if (gesture->mLocal)
|
if (gesture->mLocal)
|
||||||
@@ -1214,6 +1216,7 @@ void LLGestureMgr::stopGesture(LLMultiGesture* gesture)
|
|||||||
else
|
else
|
||||||
gAgent.sendAnimationRequest(anim_id, ANIM_REQUEST_STOP);
|
gAgent.sendAnimationRequest(anim_id, ANIM_REQUEST_STOP);
|
||||||
}
|
}
|
||||||
|
gesture->mPlayingAnimIDs.clear();
|
||||||
|
|
||||||
mPlaying.erase(std::remove(mPlaying.begin(), mPlaying.end(), gesture), mPlaying.end());
|
mPlaying.erase(std::remove(mPlaying.begin(), mPlaying.end(), gesture), mPlaying.end());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user