From a135e51d232143556e8154ccffeaf4860e02e33d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 2 May 2012 22:08:09 +0100 Subject: Improved sitted avatars crossings ( plus tests on vehicles) --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework') 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 ScenePresence agent = icon.EndInvoke(iar); //// If the cross was successful, this agent is a child agent - //if (agent.IsChildAgent) - // agent.Reset(); - //else // Not successful - // agent.RestoreInCurrentScene(); + if (agent.IsChildAgent) + { + if (agent.ParentUUID != UUID.Zero) + { + agent.ParentPart = null; + agent.ParentPosition = Vector3.Zero; + } + } + +// agent.Reset(); +// else // Not successful +// agent.RestoreInCurrentScene(); // In any case agent.IsInTransit = false; -- cgit v1.1