mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Make scripted attachment states work. Finally. Also replace two monitor locks
with RWLocks, hunting the 10^3 bug. Not successful, but needed to be done anyway
This commit is contained in:
@@ -1040,6 +1040,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
#endregion
|
||||
|
||||
public void SaveScriptedState(XmlTextWriter writer)
|
||||
{
|
||||
SaveScriptedState(writer, false);
|
||||
}
|
||||
|
||||
public void SaveScriptedState(XmlTextWriter writer, bool oldIDs)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
Dictionary<UUID,string> states = new Dictionary<UUID,string>();
|
||||
@@ -1050,7 +1055,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
foreach (SceneObjectPart part in m_parts.Values)
|
||||
{
|
||||
|
||||
Dictionary<UUID,string> pstates = part.Inventory.GetScriptStates();
|
||||
Dictionary<UUID,string> pstates = part.Inventory.GetScriptStates(oldIDs);
|
||||
foreach (UUID itemid in pstates.Keys)
|
||||
{
|
||||
states.Add(itemid, pstates[itemid]);
|
||||
|
||||
Reference in New Issue
Block a user