Implement a pref to turn on the simulator ExportSupported feature entry.

This tells the viewer to enable the UI for export permissions.
WARNING: If your inventory store contains invalid flags data, this will result
in items becoming exportable! Don't turn this on in production until it's complete!
user_profiles
Melanie 2013-03-26 19:00:30 +00:00
parent 5f4c4df227
commit e82fab34d7
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,7 @@ namespace OpenSim.Region.ClientStack.Linden
private string m_MapImageServerURL = string.Empty; private string m_MapImageServerURL = string.Empty;
private string m_SearchURL = string.Empty; private string m_SearchURL = string.Empty;
private bool m_ExportSupported = false;
#region ISharedRegionModule Members #region ISharedRegionModule Members
@ -87,6 +88,8 @@ namespace OpenSim.Region.ClientStack.Linden
} }
m_SearchURL = config.GetString("SearchServerURI", string.Empty); m_SearchURL = config.GetString("SearchServerURI", string.Empty);
m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported);
} }
AddDefaultFeatures(); AddDefaultFeatures();
@ -152,6 +155,9 @@ namespace OpenSim.Region.ClientStack.Linden
if (m_SearchURL != string.Empty) if (m_SearchURL != string.Empty)
gridServicesMap["search"] = m_SearchURL; gridServicesMap["search"] = m_SearchURL;
m_features["GridServices"] = gridServicesMap; m_features["GridServices"] = gridServicesMap;
if (m_ExportSupported)
m_features["ExportSupported"] = true;
} }
} }