Force regioncrossed prims to get a new LocalID. Reset parent local ID to new

avatar local ID when corssing.
This commit is contained in:
Melanie Thielker
2008-11-28 03:28:39 +00:00
parent a7f3d2fbc2
commit 3ff34579e4
2 changed files with 14 additions and 1 deletions

View File

@@ -1440,7 +1440,12 @@ namespace OpenSim.Region.Environment.Scenes
if (ent is SceneObjectGroup)
{
SceneObjectGroup obj = (SceneObjectGroup)ent;
sceneObjects.Add(obj.LocalId, obj);
// Nasty one. Can't unlink anything in the sim
// If a duplicate local ID sneaks in
// So, check it here!
//
if (!sceneObjects.ContainsKey(obj.LocalId))
sceneObjects.Add(obj.LocalId, obj);
}
}