From 4905c74ddffba50bb3e576c69fdc71c64cfcc3b8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 31 Aug 2015 14:08:32 +0100 Subject: start sending terrain patchs in completmovement where we know its position. Also reset camera to position on makeroot --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 045a450..cd5525c 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1198,6 +1198,8 @@ no information to check this } AbsolutePosition = pos; + // reset camera to avatar pos + CameraPosition = pos; if (m_teleportFlags == TeleportFlags.Default) { @@ -1733,6 +1735,10 @@ no information to check this look = new Vector3(0.99f, 0.042f, 0); } +// start sending terrain patchs + if (!isNPC) + Scene.SendLayerData(ControllingClient); + if (!IsChildAgent && !isNPC) { InventoryFolderBase cof = m_scene.InventoryService.GetFolderForType(client.AgentId, (AssetType)46); -- cgit v1.1