Fixed tree crossing. This will alleviate

http://opensimulator.org/mantis/view.php?id=4163
prioritization
Diva Canto 2009-10-11 13:46:19 -07:00
parent 36dcfd2b80
commit ef6aa444bf
1 changed files with 52 additions and 54 deletions

View File

@ -2284,9 +2284,7 @@ namespace OpenSim.Region.Framework.Scenes
foreach (SceneObjectPart p in sceneObject.Children.Values)
p.LocalId = 0;
if (sceneObject.RootPart.Shape.PCode == (byte)PCode.Prim)
{
if (sceneObject.RootPart.Shape.State != 0) // Attachment
if ((sceneObject.RootPart.Shape.PCode == (byte)PCode.Prim) && (sceneObject.RootPart.Shape.State != 0)) // Attachment
{
sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez);
sceneObject.RootPart.AddFlag(PrimFlags.Phantom);
@ -2352,7 +2350,7 @@ namespace OpenSim.Region.Framework.Scenes
return false;
}
}
}
return true;
}
#endregion