Avoid a gratuitious KillObject storm on region crossing

This commit is contained in:
Melanie Thielker
2008-10-04 05:38:16 +00:00
parent a489fdfb4f
commit 439589260c

View File

@@ -741,8 +741,11 @@ namespace OpenSim.Region.Environment.Scenes
// It then reappears on the avatar, deselected
// through the full update below
//
foreach (SceneObjectPart part in m_parts.Values)
m_scene.SendKiPrimitive(part.LocalId);
if (IsSelected)
{
foreach (SceneObjectPart part in m_parts.Values)
m_scene.SendKiPrimitive(part.LocalId);
}
IsSelected = false; // fudge....
ScheduleGroupForFullUpdate();