OpenSim.Region.CoreModules.Avatar.AvatarFactory.AvatarFactoryModule.SendWearables C# (CSharp) Method

SendWearables() public method

Tell the client for this scene presence what items it should be wearing now
public SendWearables ( IClientAPI client ) : void
client IClientAPI
return void
        public void SendWearables(IClientAPI client)
        {
            ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
            if (sp == null)
            {
                m_log.WarnFormat("[AVATAR FACTORY MODULE]: SendWearables unable to find presence for {0}", client.AgentId);
                return;
            }

//            m_log.WarnFormat("[AVATAR FACTORY MODULE]: Received request for wearables of {0}", client.AgentId);

            client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
        }