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
parent
5f4c4df227
commit
e82fab34d7
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue