Back out the attachment location patch to debug a crash

0.6.1-post-fixes
Melanie Thielker 2008-11-17 05:47:36 +00:00
parent 3f4aeccca3
commit 2a8020b9d9
1 changed files with 5 additions and 4 deletions

View File

@ -426,14 +426,15 @@ namespace OpenSim.Region.Environment.Scenes
} }
if (IsAttachment) if (IsAttachment)
{ {
if (m_parentGroup != null && m_parentGroup.RootPart != null) // if (m_parentGroup != null && m_parentGroup.RootPart != null)
{ // {
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar); // ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar);
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
if (sp != null) if (sp != null)
{ {
return sp.AbsolutePosition; return sp.AbsolutePosition;
} }
} // }
} }
return m_groupPosition; return m_groupPosition;