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

@@ -1717,6 +1717,9 @@ namespace OpenSim.Region.Framework.Scenes
if (m_rootPart == null)
return;
if ((RootPart.Flags & PrimFlags.TemporaryOnRez) != 0)
return;
lock (m_parts)
{
bool UsePhysics = ((RootPart.Flags & PrimFlags.Physics) != 0);
@@ -3036,6 +3039,7 @@ namespace OpenSim.Region.Framework.Scenes
public virtual ISceneObject CloneForNewScene()
{
SceneObjectGroup sog = Copy(this.OwnerID, this.GroupID, false);
sog.m_isDeleted = false;
return sog;
}