From 05c24a648d6f860dc412e424e724392798070f2b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 17 Jul 2009 18:38:03 +0000 Subject: * Another attempt to remedy the 'ghost prim' situation. This time for attachments on teleport. --- OpenSim/Region/Framework/Scenes/Scene.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 63cf9ce..c39cb2d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1705,6 +1705,8 @@ namespace OpenSim.Region.Framework.Scenes { m_log.DebugFormat("[INTERREGION]: A new prim {0} arrived from a neighbor", primID); SceneObjectGroup sceneObject = m_serialiser.DeserializeGroupFromXml2(objXMLData); + if (sceneObject.IsAttachment) + sceneObject.RootPart.ObjectFlags |= (uint)PrimFlags.Phantom; return AddSceneObject(sceneObject); } @@ -1842,6 +1844,7 @@ namespace OpenSim.Region.Framework.Scenes if (sceneObject.RootPart.Shape.State != 0) // Attachment { sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez); + sceneObject.RootPart.AddFlag(PrimFlags.Phantom); AddRestoredSceneObject(sceneObject, false, false); -- cgit v1.1