From 31a50a73cbd80829f75c293087472b4ce9d6abc8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 31 Aug 2015 14:21:50 +0100 Subject: dont change camera on crossings --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cd5525c..6390d26 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1198,9 +1198,6 @@ no information to check this } AbsolutePosition = pos; - // reset camera to avatar pos - CameraPosition = pos; - if (m_teleportFlags == TeleportFlags.Default) { Vector3 vel = Velocity; @@ -1209,8 +1206,11 @@ no information to check this PhysicsActor.SetMomentum(vel); } else + { AddToPhysicalScene(isFlying); - + // reset camera to avatar pos + CameraPosition = pos; + } if (ForceFly) { -- cgit v1.1