diff options
author | Teravus Ovares | 2007-12-15 17:10:12 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-15 17:10:12 +0000 |
commit | e3dd15bef05bbe53b3dac44c320e4182ce7feb68 (patch) | |
tree | 38b93ee4a8aa88113588f91f6940b3358146ee34 /OpenSim/Region | |
parent | Thanks again to Alondria for adding: math support for (diff) | |
download | opensim-SC_OLD-e3dd15bef05bbe53b3dac44c320e4182ce7feb68.zip opensim-SC_OLD-e3dd15bef05bbe53b3dac44c320e4182ce7feb68.tar.gz opensim-SC_OLD-e3dd15bef05bbe53b3dac44c320e4182ce7feb68.tar.bz2 opensim-SC_OLD-e3dd15bef05bbe53b3dac44c320e4182ce7feb68.tar.xz |
* Added support for multiple terrain blocks to be edited at the same time
* Now sending South and East cords to the terrain editor..
* No new functionality from a user perspective
* Programming wise, there's enough information to get the select based terrain editor working in an upcoming revision.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index dffcd73..065e5e0 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -2453,10 +2453,13 @@ namespace OpenSim.Region.ClientStack | |||
2453 | { | 2453 | { |
2454 | if (OnModifyTerrain != null) | 2454 | if (OnModifyTerrain != null) |
2455 | { | 2455 | { |
2456 | OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, | 2456 | for (int i=0; i < modify.ParcelData.Length; i++) |
2457 | modify.ModifyBlock.BrushSize, | 2457 | { |
2458 | modify.ModifyBlock.Action, modify.ParcelData[0].North, | 2458 | OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds, |
2459 | modify.ParcelData[0].West, this); | 2459 | modify.ModifyBlock.BrushSize, |
2460 | modify.ModifyBlock.Action, modify.ParcelData[i].North, | ||
2461 | modify.ParcelData[i].West, modify.ParcelData[i].South, modify.ParcelData[i].East, this); | ||
2462 | } | ||
2460 | } | 2463 | } |
2461 | } | 2464 | } |
2462 | break; | 2465 | break; |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 07e5362..ce77527 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
45 | /// <param name="action">The action to be performed</param> | 45 | /// <param name="action">The action to be performed</param> |
46 | /// <param name="north">Distance from the north border where the cursor is located</param> | 46 | /// <param name="north">Distance from the north border where the cursor is located</param> |
47 | /// <param name="west">Distance from the west border where the cursor is located</param> | 47 | /// <param name="west">Distance from the west border where the cursor is located</param> |
48 | public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west, | 48 | public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west, float south, float east, |
49 | IClientAPI remoteUser) | 49 | IClientAPI remoteUser) |
50 | { | 50 | { |
51 | // Do a permissions check before allowing terraforming. | 51 | // Do a permissions check before allowing terraforming. |