From 439589260c6ba0e9866cce38699b8fd328b46fb1 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 4 Oct 2008 05:38:16 +0000 Subject: Avoid a gratuitious KillObject storm on region crossing --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 18322ee..5df1edd 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -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(); -- cgit v1.1