OpenSim.Region.Framework.Scenes.ScenePresence.RezAttachments C# (CSharp) Method

RezAttachments() public method

RezAttachments. This should only be called upon login on the first region. Attachment rezzings on crossings and TPs are done in a different way.
public RezAttachments ( ) : void
return void
        public void RezAttachments()
        {
            if (null == m_appearance)
            {
                m_log.WarnFormat("[ATTACHMENT]: Appearance has not been initialized for agent {0}", UUID);
                return;
            }

            List<AvatarAttachment> attachments = m_appearance.GetAttachments();
            foreach (AvatarAttachment attach in attachments)
            {
                if (m_isDeleted)
                    return;

                int p = attach.AttachPoint;
                UUID itemID = attach.ItemID;

                //UUID assetID = attach.AssetID;
                // For some reason assetIDs are being written as Zero's in the DB -- need to track tat down
                // But they're not used anyway, the item is being looked up for now, so let's proceed.
                //if (UUID.Zero == assetID) 
                //{
                //    m_log.DebugFormat("[ATTACHMENT]: Cannot rez attachment in point {0} with itemID {1}", p, itemID);
                //    continue;
                //}

                try
                {
                    m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p);
                }
                catch (Exception e)
                {
                    m_log.ErrorFormat("[ATTACHMENT]: Unable to rez attachment: {0}{1}", e.Message, e.StackTrace);
                }
            }
        }
ScenePresence