diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-18 13:40:30 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-18 13:40:30 +0000 |
commit | d6007b2b41e34135f7fe579f9aa9c6b354657509 (patch) | |
tree | 642b2b285d9a9583f441645fb580a2e90265d627 /indra | |
parent | c508259f3c15401da1843af261c5a38e85fbfe80 (diff) |
MAINT-8104 - avoid redundant rigged volume updates when corresponding avatar is paused
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 9 |
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; |