summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-12-18 13:40:30 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-12-18 13:40:30 +0000
commitd6007b2b41e34135f7fe579f9aa9c6b354657509 (patch)
tree642b2b285d9a9583f441645fb580a2e90265d627 /indra/newview/llvovolume.cpp
parentc508259f3c15401da1843af261c5a38e85fbfe80 (diff)
MAINT-8104 - avoid redundant rigged volume updates when corresponding avatar is paused
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 61844e064d..d31cd1e33f 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -4407,6 +4407,15 @@ void LLRiggedVolume::update(const LLMeshSkinInfo* skin, LLVOAvatar* avatar, cons
{
copyVolumeFaces(volume);
}
+ else
+ {
+ bool is_paused = avatar && avatar->areAnimationsPaused();
+ if (is_paused)
+ {
+ return;
+ }
+ }
+
//build matrix palette
static const size_t kMaxJoints = LL_MAX_JOINTS_PER_MESH_OBJECT;