mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
find sending of initial terrain using PushTerrain as os core
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
|
||||
using System.IO;
|
||||
using OpenSim.Framework;
|
||||
using OpenMetaverse;
|
||||
|
||||
namespace OpenSim.Region.Framework.Interfaces
|
||||
@@ -42,7 +43,13 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// Use this if you change terrain data outside of the terrain module (e.g. in osTerrainSetHeight)
|
||||
/// </summary>
|
||||
void TaintTerrain();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// When a client initially connects, all the terrain must be pushed to the viewer.
|
||||
/// This call causes all the terrain patches to be sent to the client.
|
||||
/// </summary>
|
||||
void PushTerrain(IClientAPI pClient);
|
||||
|
||||
/// <summary>
|
||||
/// Load a terrain from a stream.
|
||||
/// </summary>
|
||||
|
||||
@@ -211,7 +211,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="RemoteClient">Client to send to</param>
|
||||
public virtual void SendLayerData(IClientAPI RemoteClient)
|
||||
{
|
||||
RemoteClient.SendLayerData(Heightmap.GetFloatsSerialised());
|
||||
// RemoteClient.SendLayerData(Heightmap.GetFloatsSerialised());
|
||||
ITerrainModule terrModule = RequestModuleInterface<ITerrainModule>();
|
||||
if (terrModule != null)
|
||||
{
|
||||
terrModule.PushTerrain(RemoteClient);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user