From 20b7f4684c8182a02422160ad3c5b6102dc8f997 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 4 Oct 2017 19:52:11 +0100 Subject: MAINT-7867 - changed simulator feature query so we're only looking in the agent's region. This assumes that all regions will have the same settings, which is normally a safe assumption. --- indra/newview/llvoavatar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/llvoavatar.cpp') diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index d2a413b073..516cf79fbe 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -6613,9 +6613,9 @@ S32 LLVOAvatar::getMaxAnimatedObjectAttachments() const { S32 max_attach = 0; LLSD features; - if (getRegion()) + if (gAgent.getRegion()) { - getRegion()->getSimulatorFeatures(features); + gAgent.getRegion()->getSimulatorFeatures(features); if (features.has("AnimatedObjects")) { max_attach = features["AnimatedObjects"]["MaxAgentAnimatedObjectAttachments"].asInteger(); -- cgit v1.2.3