Fixes the problem of attachment offset after crossings/TPs. Hopefully it fixes mantis #3126, as well as other random displacements. The problem was that the new object at the receiving region was being marked as attachment before AttachObject was called. That made its AbsolutePosition be the position of the avie, and that was what was being given to AttachObject.

This commit is contained in:
diva
2009-02-10 22:54:05 +00:00
parent 8c157a7aae
commit b4be9baa4a
5 changed files with 43 additions and 42 deletions

View File

@@ -218,8 +218,9 @@ namespace OpenSim.Region.CoreModules.Communications.Local
{
if (s.RegionInfo.RegionHandle == regionHandle)
{
//m_log.Debug("[LOCAL COMMS]: Found region to SendCreateObject");
return s.IncomingCreateObject(sog);
//m_log.Debug("[LOCAL COMMS]: Found region to SendCreateObject");
ISceneObject sogClone = sog.CloneForNewScene();
return s.IncomingCreateObject(sogClone);
}
}
return false;

View File

@@ -223,8 +223,7 @@ namespace OpenSim.Region.CoreModules.Communications.REST
public bool SendCreateObject(ulong regionHandle, ISceneObject sog)
{
// Try local first
ISceneObject sogClone = sog.CloneForNewScene();
if (m_localBackend.SendCreateObject(regionHandle, sogClone))
if (m_localBackend.SendCreateObject(regionHandle, sog))
{
//m_log.Debug("[REST COMMS]: LocalBackEnd SendCreateObject succeeded");
return true;