mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Fix a nullref in attachment handling. Add some debug to find the attachment
state issue
This commit is contained in:
@@ -333,8 +333,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (engines == null) // No engine at all
|
||||
return;
|
||||
|
||||
m_log.DebugFormat("[ScriptState]: Item ID changed: {0} to {1}", oldID, newID);
|
||||
if (m_part.ParentGroup.m_savedScriptState.ContainsKey(oldID))
|
||||
{
|
||||
m_log.DebugFormat("[ScriptState]: Found script state for {0}, applying to new script item {1}", oldID, newID);
|
||||
XmlDocument doc = new XmlDocument();
|
||||
|
||||
doc.LoadXml(m_part.ParentGroup.m_savedScriptState[oldID]);
|
||||
@@ -380,6 +382,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
m_part.ParentGroup.m_savedScriptState.Remove(oldID);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.DebugFormat("[ScriptState]: No state for old ID {0}", oldID);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user