Universe.Region.SceneObjectGroup.LinkChild C# (CSharp) Method

LinkChild() public method

Add this child to the group and set the parent ID's, but do NOT set the link number, the caller wants to deal with it if they call this
public LinkChild ( ISceneChildEntity child ) : bool
child ISceneChildEntity
return bool
        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;
        }
SceneObjectGroup