* Another attempt to remedy the 'ghost prim' situation. This time for attachments on teleport.
parent
ebb03e2aab
commit
05c24a648d
|
@ -1705,6 +1705,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[INTERREGION]: A new prim {0} arrived from a neighbor", primID);
|
m_log.DebugFormat("[INTERREGION]: A new prim {0} arrived from a neighbor", primID);
|
||||||
SceneObjectGroup sceneObject = m_serialiser.DeserializeGroupFromXml2(objXMLData);
|
SceneObjectGroup sceneObject = m_serialiser.DeserializeGroupFromXml2(objXMLData);
|
||||||
|
if (sceneObject.IsAttachment)
|
||||||
|
sceneObject.RootPart.ObjectFlags |= (uint)PrimFlags.Phantom;
|
||||||
|
|
||||||
return AddSceneObject(sceneObject);
|
return AddSceneObject(sceneObject);
|
||||||
}
|
}
|
||||||
|
@ -1842,6 +1844,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (sceneObject.RootPart.Shape.State != 0) // Attachment
|
if (sceneObject.RootPart.Shape.State != 0) // Attachment
|
||||||
{
|
{
|
||||||
sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez);
|
sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez);
|
||||||
|
sceneObject.RootPart.AddFlag(PrimFlags.Phantom);
|
||||||
|
|
||||||
AddRestoredSceneObject(sceneObject, false, false);
|
AddRestoredSceneObject(sceneObject, false, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue