* Ooops, attachments now teleport/cross region borders along with your avatar. Those dastardly objects stick to you.

This commit is contained in:
Teravus Ovares
2008-04-26 17:36:30 +00:00
parent 3dc60c1433
commit 323038ceb9
6 changed files with 141 additions and 22 deletions

View File

@@ -1457,6 +1457,28 @@ namespace OpenSim.Region.Environment.Scenes
if (XMLMethod == 0)
{
m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData);
SceneObjectPart RootPrim = GetSceneObjectPart(primID);
if (RootPrim != null)
{
if (RootPrim.Shape.PCode == (byte)PCode.Prim)
{
SceneObjectGroup grp = RootPrim.ParentGroup;
if (grp != null)
{
if (RootPrim.Shape.State != 0)
{
// Attachment
ScenePresence sp = GetScenePresence(grp.OwnerID);
if (sp != null)
{
m_innerScene.AttachObject(sp.ControllingClient, grp.LocalId, (uint)0, grp.GroupRotation, grp.AbsolutePosition);
}
}
}
}
}
return true;
}
else