From c0521482ceacab54da65600265d5d878b906359b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 29 Aug 2019 09:08:45 +0100 Subject: [PATCH] add a test sim feature --- .../ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index b52f2fd9ae..bcba142882 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs @@ -78,6 +78,8 @@ namespace OpenSim.Region.ClientStack.Linden private string m_GridURL = string.Empty; private bool m_doScriptSyntax; + private bool m_BoMSupported = false; + static private object m_scriptSyntaxLock = new object(); static private UUID m_scriptSyntaxID = UUID.Zero; static private string m_scriptSyntaxXML; @@ -111,6 +113,8 @@ namespace OpenSim.Region.ClientStack.Linden m_GridName = Util.GetConfigVarFromSections( source, "gridname", new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty); m_doScriptSyntax = config.GetBoolean("ScriptSyntax", m_doScriptSyntax); + m_BoMSupported = config.GetBoolean("BoMSupported", m_BoMSupported); + } ReadScriptSyntax(); @@ -154,13 +158,15 @@ namespace OpenSim.Region.ClientStack.Linden /// private void AddDefaultFeatures() { - lock (m_features) { m_features["MeshRezEnabled"] = true; m_features["MeshUploadEnabled"] = true; m_features["MeshXferEnabled"] = true; + if(m_BoMSupported) + m_features["BakesOnMeshEnabled"] = true; + m_features["PhysicsMaterialsEnabled"] = true; OSDMap typesMap = new OSDMap();