mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
start sending terrain patchs in completmovement where we know its
position. Also reset camera to position on makeroot
This commit is contained in:
@@ -3030,7 +3030,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public virtual void SubscribeToClientTerrainEvents(IClientAPI client)
|
||||
{
|
||||
client.OnRegionHandShakeReply += SendLayerData;
|
||||
// client.OnRegionHandShakeReply += SendLayerData;
|
||||
}
|
||||
|
||||
public virtual void SubscribeToClientPrimEvents(IClientAPI client)
|
||||
@@ -3158,7 +3158,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public virtual void UnSubscribeToClientTerrainEvents(IClientAPI client)
|
||||
{
|
||||
client.OnRegionHandShakeReply -= SendLayerData;
|
||||
// client.OnRegionHandShakeReply -= SendLayerData;
|
||||
}
|
||||
|
||||
public virtual void UnSubscribeToClientPrimEvents(IClientAPI client)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user