find sending of initial terrain using PushTerrain as os core
parent
7661366223
commit
601914ecd8
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using OpenSim.Framework;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace OpenSim.Region.Framework.Interfaces
|
namespace OpenSim.Region.Framework.Interfaces
|
||||||
|
@ -43,6 +44,12 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void TaintTerrain();
|
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>
|
/// <summary>
|
||||||
/// Load a terrain from a stream.
|
/// Load a terrain from a stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -211,7 +211,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="RemoteClient">Client to send to</param>
|
/// <param name="RemoteClient">Client to send to</param>
|
||||||
public virtual void SendLayerData(IClientAPI RemoteClient)
|
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
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue