Make object chat come from the root prim's center, rather than trying to make

it come from a child prim position.
This commit is contained in:
Melanie Thielker
2008-11-17 05:57:58 +00:00
parent 2a8020b9d9
commit 598316c890
2 changed files with 9 additions and 12 deletions

View File

@@ -424,17 +424,14 @@ namespace OpenSim.Region.Environment.Scenes
m_groupPosition.Y = PhysActor.Position.Y;
m_groupPosition.Z = PhysActor.Position.Z;
}
if (IsAttachment)
{
// 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;
}
// }
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
if (sp != null)
{
return sp.AbsolutePosition;
}
}
return m_groupPosition;