aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-26 17:36:30 +0000
committerTeravus Ovares2008-04-26 17:36:30 +0000
commit323038ceb956fef577ebd83c502cc377bcfe83f9 (patch)
tree926410e63d94006e0d66d9ab24213b9f51519342 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* Committing Mantis #1061 - llRegionSay and llSetPrimitiveParams implementati... (diff)
downloadopensim-SC_OLD-323038ceb956fef577ebd83c502cc377bcfe83f9.zip
opensim-SC_OLD-323038ceb956fef577ebd83c502cc377bcfe83f9.tar.gz
opensim-SC_OLD-323038ceb956fef577ebd83c502cc377bcfe83f9.tar.bz2
opensim-SC_OLD-323038ceb956fef577ebd83c502cc377bcfe83f9.tar.xz
* Ooops, attachments now teleport/cross region borders along with your avatar. Those dastardly objects stick to you.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index ce713c5..9ca845f 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1457,6 +1457,28 @@ namespace OpenSim.Region.Environment.Scenes
1457 if (XMLMethod == 0) 1457 if (XMLMethod == 0)
1458 { 1458 {
1459 m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData); 1459 m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData);
1460 SceneObjectPart RootPrim = GetSceneObjectPart(primID);
1461 if (RootPrim != null)
1462 {
1463 if (RootPrim.Shape.PCode == (byte)PCode.Prim)
1464 {
1465 SceneObjectGroup grp = RootPrim.ParentGroup;
1466 if (grp != null)
1467 {
1468 if (RootPrim.Shape.State != 0)
1469 {
1470 // Attachment
1471 ScenePresence sp = GetScenePresence(grp.OwnerID);
1472 if (sp != null)
1473 {
1474 m_innerScene.AttachObject(sp.ControllingClient, grp.LocalId, (uint)0, grp.GroupRotation, grp.AbsolutePosition);
1475 }
1476 }
1477 }
1478
1479
1480 }
1481 }
1460 return true; 1482 return true;
1461 } 1483 }
1462 else 1484 else