| Attached Files | set-terrain-heights-all-corners.patch [^] (2,623 bytes) 2012-06-05 14:20 [Show Content] [Hide Content]From db489f0751e266718307a7efdd94ea9ef50451f8 Mon Sep 17 00:00:00 2001
From: SignpostMarv <github@signpostmarv.name>
Date: Tue, 5 Jun 2012 15:11:45 +0100
Subject: [PATCH] enabling all corners of a sim to be set in one call
---
.../World/Estate/EstateManagementCommands.cs | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs
index d2bbea3..3b84d57 100644
--- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs
+++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs
@@ -73,7 +73,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
"set terrain heights <corner> <min> <max> [<x>] [<y>]",
"Sets the terrain texture heights on corner #<corner> to <min>/<max>, if <x> or <y> are specified, it will only " +
"set it on regions with a matching coordinate. Specify -1 in <x> or <y> to wildcard" +
- " that coordinate. Corner # SW = 0, NW = 1, SE = 2, NE = 3.",
+ " that coordinate. Corner # SW = 0, NW = 1, SE = 2, NE = 3, all corners = -1.",
consoleSetTerrainHeights);
m_module.Scene.AddCommand(
@@ -143,6 +143,16 @@ namespace OpenSim.Region.CoreModules.World.Estate
switch (corner)
{
+ case -1:
+ m_module.Scene.RegionInfo.RegionSettings.Elevation1SW = lowValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation2SW = highValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation1NW = lowValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation2NW = highValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation1SE = lowValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation2SE = highValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation1NE = lowValue;
+ m_module.Scene.RegionInfo.RegionSettings.Elevation2NE = highValue;
+ break;
case 0:
m_module.Scene.RegionInfo.RegionSettings.Elevation1SW = lowValue;
m_module.Scene.RegionInfo.RegionSettings.Elevation2SW = highValue;
--
1.7.8.msysgit.0
|