diff options
author | UbitUmarov | 2012-05-02 22:08:09 +0100 |
---|---|---|
committer | UbitUmarov | 2012-05-02 22:08:09 +0100 |
commit | a135e51d232143556e8154ccffeaf4860e02e33d (patch) | |
tree | d31b5e5c3bc04fdd006042a332ad13c59a08ecc4 /OpenSim/Region/Framework | |
parent | Bogus change to get a version number (diff) | |
download | opensim-SC_OLD-a135e51d232143556e8154ccffeaf4860e02e33d.zip opensim-SC_OLD-a135e51d232143556e8154ccffeaf4860e02e33d.tar.gz opensim-SC_OLD-a135e51d232143556e8154ccffeaf4860e02e33d.tar.bz2 opensim-SC_OLD-a135e51d232143556e8154ccffeaf4860e02e33d.tar.xz |
Improved sitted avatars crossings ( plus tests on vehicles)
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; |