* 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.
parent
9b0b0b5e28
commit
3cd5ffa82a
|
@ -2114,6 +2114,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public void GetAvatarAppearance(IClientAPI client, out AvatarAppearance appearance)
|
public void GetAvatarAppearance(IClientAPI client, out AvatarAppearance appearance)
|
||||||
{
|
{
|
||||||
AgentCircuitData aCircuit = m_authenticateHandler.GetAgentCircuitData(client.CircuitCode);
|
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;
|
appearance = aCircuit.Appearance;
|
||||||
if (appearance == null)
|
if (appearance == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue