From d6007b2b41e34135f7fe579f9aa9c6b354657509 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Mon, 18 Dec 2017 13:40:30 +0000 Subject: MAINT-8104 - avoid redundant rigged volume updates when corresponding avatar is paused --- indra/newview/llvovolume.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/llvovolume.cpp') 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; -- cgit v1.2.3