diff options
author | Teravus Ovares | 2008-04-25 21:41:55 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-25 21:41:55 +0000 |
commit | a534257b0e0861bb7656389675044fa905a11bf4 (patch) | |
tree | c879b8b46c13bd5afffb660ca3154ed8a94d51ce /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | * Check in odds and ends which remain as an attempt to get the item propertie... (diff) | |
download | opensim-SC_OLD-a534257b0e0861bb7656389675044fa905a11bf4.zip opensim-SC_OLD-a534257b0e0861bb7656389675044fa905a11bf4.tar.gz opensim-SC_OLD-a534257b0e0861bb7656389675044fa905a11bf4.tar.bz2 opensim-SC_OLD-a534257b0e0861bb7656389675044fa905a11bf4.tar.xz |
* Fixes prim crossing. See bug 1050.
* Causes the internal handling of attachments to put the prim group conceptually at the position of the avatar instead of 0,0,0
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index ae914b3..ce713c5 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1368,14 +1368,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
1368 | m_sceneXmlLoader.SavePrimsToXml2(fileName); | 1368 | m_sceneXmlLoader.SavePrimsToXml2(fileName); |
1369 | } | 1369 | } |
1370 | 1370 | ||
1371 | /// <summary> | ||
1372 | /// Locate New region Handle and offset the prim position for the new region | ||
1373 | /// | ||
1374 | /// </summary> | ||
1375 | /// <param name="position">current position of Group</param> | ||
1376 | /// <param name="grp">Scene Object Group that we're crossing</param> | ||
1377 | |||
1371 | public void CrossPrimGroupIntoNewRegion(LLVector3 position, SceneObjectGroup grp) | 1378 | public void CrossPrimGroupIntoNewRegion(LLVector3 position, SceneObjectGroup grp) |
1372 | { | 1379 | { |
1373 | m_log.Warn("Prim crossing: " + grp.UUID.ToString()); | 1380 | m_log.Warn("Prim crossing: " + grp.UUID.ToString()); |
1374 | int thisx = (int)RegionInfo.RegionLocX; | 1381 | int thisx = (int)RegionInfo.RegionLocX; |
1375 | int thisy = (int)RegionInfo.RegionLocY; | 1382 | int thisy = (int)RegionInfo.RegionLocY; |
1376 | 1383 | ||
1377 | int primcrossingXMLmethod = 0; | ||
1378 | |||
1379 | ulong newRegionHandle = 0; | 1384 | ulong newRegionHandle = 0; |
1380 | LLVector3 pos = position; | 1385 | LLVector3 pos = position; |
1381 | 1386 | ||
@@ -1410,6 +1415,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
1410 | // Offset the positions for the new region across the border | 1415 | // Offset the positions for the new region across the border |
1411 | grp.OffsetForNewRegion(pos); | 1416 | grp.OffsetForNewRegion(pos); |
1412 | 1417 | ||
1418 | CrossPrimGroupIntoNewRegion(newRegionHandle, grp); | ||
1419 | |||
1420 | } | ||
1421 | public void CrossPrimGroupIntoNewRegion(ulong newRegionHandle, SceneObjectGroup grp) | ||
1422 | { | ||
1423 | int primcrossingXMLmethod = 0; | ||
1413 | if (newRegionHandle != 0) | 1424 | if (newRegionHandle != 0) |
1414 | { | 1425 | { |
1415 | bool successYN = false; | 1426 | bool successYN = false; |