diff options
author | Adam Frisby | 2008-03-03 08:35:59 +0000 |
---|---|---|
committer | Adam Frisby | 2008-03-03 08:35:59 +0000 |
commit | c5d1f87cd202663f2f26ca90a973d9763070dda3 (patch) | |
tree | b1941867d13d1d3b29b46483e6b58cba536c72ca /OpenSim/Region/Environment/Scenes | |
parent | * Applying Ahzz's profile patch. Thanks Ahzz! (diff) | |
download | opensim-SC-c5d1f87cd202663f2f26ca90a973d9763070dda3.zip opensim-SC-c5d1f87cd202663f2f26ca90a973d9763070dda3.tar.gz opensim-SC-c5d1f87cd202663f2f26ca90a973d9763070dda3.tar.bz2 opensim-SC-c5d1f87cd202663f2f26ca90a973d9763070dda3.tar.xz |
* Removed and sorted using clauses in a number of files.
* Cleaned up ITerrainChannel
* Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Paint Brushes
* Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Fill Brushes
* Implemented Export functionality for RAW32 terrain loader
* Implemented Import/Export for SLRAW terrain loader
* Implemented Export for JPEG terrain loader
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneBase.cs | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a20e466..845de22 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -31,14 +31,12 @@ using System.Drawing; | |||
31 | using System.Drawing.Imaging; | 31 | using System.Drawing.Imaging; |
32 | using System.Threading; | 32 | using System.Threading; |
33 | using System.Timers; | 33 | using System.Timers; |
34 | using Axiom.Math; | ||
35 | using libsecondlife; | 34 | using libsecondlife; |
36 | using libsecondlife.Packets; | 35 | using libsecondlife.Packets; |
37 | using OpenJPEGNet; | 36 | using OpenJPEGNet; |
38 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
39 | using OpenSim.Framework.Communications; | 38 | using OpenSim.Framework.Communications; |
40 | using OpenSim.Framework.Communications.Cache; | 39 | using OpenSim.Framework.Communications.Cache; |
41 | using OpenSim.Framework.Console; | ||
42 | using OpenSim.Framework.Servers; | 40 | using OpenSim.Framework.Servers; |
43 | using OpenSim.Region.Environment.Interfaces; | 41 | using OpenSim.Region.Environment.Interfaces; |
44 | using OpenSim.Region.Environment.LandManagement; | 42 | using OpenSim.Region.Environment.LandManagement; |
@@ -1002,6 +1000,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
1002 | } | 1000 | } |
1003 | else | 1001 | else |
1004 | { | 1002 | { |
1003 | // TODO: Install 'GetDefaultTerrainProvider' method here? | ||
1004 | Heightmap = new Modules.Terrain.TerrainChannel(map); | ||
1005 | Terrain.SetHeights2D(map); | 1005 | Terrain.SetHeights2D(map); |
1006 | } | 1006 | } |
1007 | 1007 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index 3f7edfb..2a2dea1 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs | |||
@@ -112,7 +112,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
112 | /// <param name="RemoteClient">Client to send to</param> | 112 | /// <param name="RemoteClient">Client to send to</param> |
113 | public virtual void SendLayerData(IClientAPI RemoteClient) | 113 | public virtual void SendLayerData(IClientAPI RemoteClient) |
114 | { | 114 | { |
115 | RemoteClient.SendLayerData(Terrain.GetHeights1D()); | 115 | bool usingTerrainModule = false; |
116 | |||
117 | if (usingTerrainModule) | ||
118 | { | ||
119 | RemoteClient.SendLayerData(Heightmap.GetFloatsSerialised()); | ||
120 | } | ||
121 | else | ||
122 | { | ||
123 | RemoteClient.SendLayerData(Terrain.GetHeights1D()); | ||
124 | } | ||
116 | } | 125 | } |
117 | 126 | ||
118 | #endregion | 127 | #endregion |