summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-11-06 14:02:38 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-11-06 14:02:38 +0000
commite8fe39f33266c96797ca976978b24bf9cd778f8c (patch)
tree5b5d97ed672350506edf235905cf16810633731b /indra/newview/llviewermessage.cpp
parente00f4d739bb7b4feb0af72ceb0ad9e469beee3c9 (diff)
SL-830 - more diagnostics and possible fixes around corrupted graphics state
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 0f567ba5ac..9de8c81c2b 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5124,9 +5124,12 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
if (num_blocks > 0 && !avatarp->mPlaying)
{
avatarp->mPlaying = true;
- avatarp->updateVolumeGeom();
- // AXON FIXME need to update all objects in the linkset, not just the one where animation is playing
- avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
+ // AXON need to update all objects in the linkset, not just the one where animation is playing
+ if (!avatarp->mRootVolp->isAnySelected())
+ {
+ avatarp->updateVolumeGeom();
+ avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
+ }
}
else if (num_blocks == 0 && avatarp->mPlaying)
{
@@ -5134,9 +5137,12 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
// animations are signalled. Probably don't want to leave this
// way but helpful for testing.
avatarp->mPlaying = false;
- avatarp->updateVolumeGeom();
- // AXON FIXME need to update all objects in the linkset, not just the one where animation is playing
- avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
+ // AXON need to update all objects in the linkset, not just the one where animation is playing
+ if (!avatarp->mRootVolp->isAnySelected())
+ {
+ avatarp->updateVolumeGeom();
+ avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
+ }
}
#endif