mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 09:25:45 +08:00
* Ooops, attachments now teleport/cross region borders along with your avatar. Those dastardly objects stick to you.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user