OpenSim.Region.Framework.Scenes.Scene.GetAvatarAppearance C# (CSharp) Method

GetAvatarAppearance() public method

Get the avatar apperance for the given client.
public GetAvatarAppearance ( IClientAPI client, AvatarAppearance &appearance ) : void
client IClientAPI
appearance AvatarAppearance
return void
        public void GetAvatarAppearance(IClientAPI client, out AvatarAppearance appearance)
        {
            AgentCircuitData aCircuit = m_authenticateHandler.GetAgentCircuitData(client.CircuitCode);

            if (aCircuit == null)
            {
                m_log.DebugFormat("[APPEARANCE] Client did not supply a circuit. Non-Linden? Creating default appearance.");
                appearance = new AvatarAppearance(client.AgentId);
                return;
            }

            appearance = aCircuit.Appearance;
            if (appearance == null)
            {
                m_log.DebugFormat("[APPEARANCE]: Appearance not found in {0}, returning default", RegionInfo.RegionName);
                appearance = new AvatarAppearance(client.AgentId);
            }
        }
Scene