this is probably just a band aid, but should at least

help figure out where my last crash came from by being
extra careful arround Add for scene object group.
0.6.0-stable
Sean Dague 2008-03-04 18:49:44 +00:00
parent 390298ed40
commit 92e54bdd17
1 changed files with 9 additions and 3 deletions

View File

@ -1635,9 +1635,15 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="part"></param> /// <param name="part"></param>
public void AddPart(SceneObjectPart part) public void AddPart(SceneObjectPart part)
{ {
lock (m_parts) {
part.SetParent(this); part.SetParent(this);
part.LinkNum = m_parts.Count; part.LinkNum = m_parts.Count;
try {
m_parts.Add(part.UUID, part); m_parts.Add(part.UUID, part);
} catch (Exception e) {
m_log.Error("Failed to add scened object part", e);
}
}
} }
/// <summary> /// <summary>