From 5d2ffdc35bf17188443e930f4dec8222e6b1430c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 13 Nov 2019 18:44:58 +0000 Subject: limit max number of attachments to 38. All can be on same point --- OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index 08c2b38..c1030ae 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs @@ -164,7 +164,6 @@ namespace OpenSim.Region.ClientStack.Linden m_features["BakesOnMeshEnabled"] = true; m_features["PhysicsMaterialsEnabled"] = true; - OSDMap typesMap = new OSDMap(); typesMap["convex"] = true; typesMap["none"] = true; @@ -175,10 +174,14 @@ namespace OpenSim.Region.ClientStack.Linden m_features["LSLSyntaxId"] = OSD.FromUUID(m_scriptSyntaxID); OSDMap meshAnim = new OSDMap(); - meshAnim["AnimatedObjectMaxTris"] = OSD.FromInteger(10000); + meshAnim["AnimatedObjectMaxTris"] = OSD.FromInteger(150000); meshAnim["MaxAgentAnimatedObjectAttachments"] = OSD.FromInteger(2); m_features["AnimatedObjects"] = meshAnim; + m_features["MaxAgentAttachments"] = OSD.FromInteger(Constants.MaxAgentAttachments); + m_features["MaxAgentGroupsBasic"] = OSD.FromInteger(Constants.MaxAgentGroups); + m_features["MaxAgentGroupsPremium"] = OSD.FromInteger(Constants.MaxAgentGroups); + // Extra information for viewers that want to use it // TODO: Take these out of here into their respective modules, like map-server-url OSDMap extrasMap; -- cgit v1.1