Back out the attachment location patch to debug a crash
parent
3f4aeccca3
commit
2a8020b9d9
|
@ -426,14 +426,15 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
if (IsAttachment)
|
||||
{
|
||||
if (m_parentGroup != null && m_parentGroup.RootPart != null)
|
||||
{
|
||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar);
|
||||
// if (m_parentGroup != null && m_parentGroup.RootPart != null)
|
||||
// {
|
||||
// ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar);
|
||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
||||
if (sp != null)
|
||||
{
|
||||
return sp.AbsolutePosition;
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
return m_groupPosition;
|
||||
|
|
Loading…
Reference in New Issue