mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 09:25:45 +08:00
This update has good news and bad news, first the bad.
* This update breaks inter-region communications, sorry. * You will need to run prebuild. Next, the good; * This update solves the unexpected binary element when Linux simulators inform windows simulators and vice versa. So Linux Simulators and Windows simulators are 100% compatible again. * This update introduces an Integer in the prim crossing method to tell the receiving simulator which XML method to use to load the prim that crossed the border. If the receiving prim doesn't support the method, the prim crossing fails and no prims are lost. That being said, it's best to update all your simulators to this revision at once.
This commit is contained in:
@@ -1242,6 +1242,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_log.Warn("Prim crossing: " + grp.UUID.ToString());
|
||||
int thisx = (int)RegionInfo.RegionLocX;
|
||||
int thisy = (int)RegionInfo.RegionLocY;
|
||||
|
||||
int primcrossingXMLmethod = 0;
|
||||
|
||||
ulong newRegionHandle = 0;
|
||||
LLVector3 pos = position;
|
||||
|
||||
@@ -1279,7 +1282,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (newRegionHandle != 0)
|
||||
{
|
||||
bool successYN = false;
|
||||
successYN = m_sceneGridService.PrimCrossToNeighboringRegion(newRegionHandle, grp.UUID, m_sceneXmlLoader.SavePrimGroupToXML2String(grp));
|
||||
successYN = m_sceneGridService.PrimCrossToNeighboringRegion(newRegionHandle, grp.UUID, m_sceneXmlLoader.SavePrimGroupToXML2String(grp), primcrossingXMLmethod);
|
||||
if (successYN)
|
||||
{
|
||||
// We remove the object here
|
||||
@@ -1306,10 +1309,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void IncomingInterRegionPrimGroup(ulong regionHandle, LLUUID primID, string objXMLData)
|
||||
public bool IncomingInterRegionPrimGroup(ulong regionHandle, LLUUID primID, string objXMLData, int XMLMethod)
|
||||
{
|
||||
m_log.Warn("{[INTERREGION]: A new prim arrived from a neighbor");
|
||||
m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData);
|
||||
if (XMLMethod == 0)
|
||||
{
|
||||
m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user