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();