diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 76804d7..8e1f447 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -634,10 +634,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
634 | ScenePresence agent = icon.EndInvoke(iar); | 634 | ScenePresence agent = icon.EndInvoke(iar); |
635 | 635 | ||
636 | //// If the cross was successful, this agent is a child agent | 636 | //// If the cross was successful, this agent is a child agent |
637 | //if (agent.IsChildAgent) | 637 | if (agent.IsChildAgent) |
638 | // agent.Reset(); | 638 | { |
639 | //else // Not successful | 639 | if (agent.ParentUUID != UUID.Zero) |
640 | // agent.RestoreInCurrentScene(); | 640 | { |
641 | agent.ParentPart = null; | ||
642 | agent.ParentPosition = Vector3.Zero; | ||
643 | } | ||
644 | } | ||
645 | |||
646 | // agent.Reset(); | ||
647 | // else // Not successful | ||
648 | // agent.RestoreInCurrentScene(); | ||
641 | 649 | ||
642 | // In any case | 650 | // In any case |
643 | agent.IsInTransit = false; | 651 | agent.IsInTransit = false; |