mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user