From 7a52b35c574da5180131e1b5df613c4df09a5065 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 19 May 2008 20:33:54 +0000 Subject: fix crash in standalone mode for initial appearance setup --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index f7c9b8d..a913a98 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -405,8 +405,6 @@ namespace OpenSim.Region.Environment.Scenes RegisterToEvents(); SetDirectionVectors(); - m_appearance = m_scene.CommsManager.UserService.GetUserAppearance(client.AgentId); - try { m_scene.LandChannel.SendLandUpdate(this, true); @@ -1445,6 +1443,9 @@ namespace OpenSim.Region.Environment.Scenes /// public void SendInitialData() { + // Needed for standalone + m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance); + m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid, LocalId, m_pos, m_appearance.Texture.ToBytes(), m_parentID); @@ -2049,7 +2050,6 @@ namespace OpenSim.Region.Environment.Scenes m_controllingClient = client; m_regionInfo = region; m_scene = scene; - m_appearance = m_scene.CommsManager.UserService.GetUserAppearance(client.AgentId); RegisterToEvents(); -- cgit v1.1