From 3cd5ffa82a3f511594746ebde129ed180693b7c8 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 22 Feb 2009 12:39:46 +0000 Subject: * 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. --- OpenSim/Region/Framework/Scenes/Scene.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 0caec5b..659aaa6 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -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) { -- cgit v1.1