public bool LinkChild(ISceneChildEntity child)
{
lock (m_partsLock)
{
if (child is SceneObjectPart)
{
SceneObjectPart part = (SceneObjectPart) child;
//Root part is first
if (m_partsList.Count == 0)
{
m_rootPart = part;
}
//Set the parent prim
part.SetParent(this);
part.SetParentLocalId(m_rootPart.LocalId);
if (!m_parts.ContainsKey(child.UUID))
{
m_parts.Add(child.UUID, part);
m_partsList.Add(part);
m_ValidgrpOOB = false;
}
m_partsList.Sort(m_scene.SceneGraph.LinkSetSorter);
return true;
}
}
return false;
}