From 838ffd779280115dee2d24ddd9531728d7426942 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 19 Jun 2008 20:57:00 +0000 Subject: Mantis#1543. Thank you kindly, Jonc for a patch that: Implements terrain bake from Region/Estate dialog and respects estate settings during terraforming --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b298578..3dddbfb 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -159,6 +159,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP private RezObject handlerRezObject = null; //OnRezObject; private GenericCall4 handlerDeRezObject = null; //OnDeRezObject; private ModifyTerrain handlerModifyTerrain = null; + private BakeTerrain handlerBakeTerrain = null; private Action handlerRegionHandShakeReply = null; //OnRegionHandShakeReply; private GenericCall2 handlerRequestWearables = null; //OnRequestWearables; private Action handlerRequestAvatarsData = null; //OnRequestAvatarsData; @@ -893,6 +894,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights; public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest; public event SetRegionTerrainSettings OnSetRegionTerrainSettings; + public event BakeTerrain OnBakeTerrain; public event EstateRestartSimRequest OnEstateRestartSimRequest; public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest; public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest; @@ -5846,6 +5848,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP handlerLandStatRequest(0, 0, 0, "", this); } break; + case "terrain": + if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId)) + { + handlerBakeTerrain = OnBakeTerrain; + if (handlerBakeTerrain != null) + { + handlerBakeTerrain(this); + } + } + break; + default: m_log.Error("EstateOwnerMessage: Unknown method requested\n" + messagePacket.ToString()); break; -- cgit v1.1