minor change to justin's previous fix that should still

prevent his crashes
0.6.0-stable
Sean Dague 2008-05-16 23:03:36 +00:00
parent abc06daefd
commit ebb0cc5dd7
1 changed files with 4 additions and 3 deletions

View File

@ -1453,11 +1453,12 @@ namespace OpenSim.Region.Environment.Scenes
public void SendInitialData()
{
// justincc - very temporary fix for the fact that m_apperance appears to be null at this point in grid mode
if (null == m_appearance)
m_appearance = new AvatarAppearance();
LLObject.TextureEntry texture = AvatarAppearance.GetDefaultTexture();
if (null != m_appearance)
texture = m_appearance.Texture;
m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid, LocalId,
m_pos, m_appearance.Texture.ToBytes(), m_parentID);
m_pos, texture.ToBytes(), m_parentID);
if (!m_isChildAgent)
{