* Fixes an assumption whereby Scene assumes that each client is capable of producing a circuit. This affects non-Linden derived viewers who do not utilize circuits.

GenericGridServerConcept
Adam Frisby 2009-02-22 12:39:46 +00:00
parent 9b0b0b5e28
commit 3cd5ffa82a
1 changed files with 8 additions and 0 deletions

View File

@ -2114,6 +2114,14 @@ namespace OpenSim.Region.Framework.Scenes
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)
{