diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs index 9435e9b..15c6dcf 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | |||
@@ -224,7 +224,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain | |||
224 | { | 224 | { |
225 | if (filename.EndsWith(loader.Key)) | 225 | if (filename.EndsWith(loader.Key)) |
226 | { | 226 | { |
227 | loader.Value.LoadFile(filename); | 227 | lock (m_scene) |
228 | { | ||
229 | ITerrainChannel channel = loader.Value.LoadFile(filename); | ||
230 | m_scene.Heightmap = channel; | ||
231 | m_channel = channel; | ||
232 | } | ||
228 | return; | 233 | return; |
229 | } | 234 | } |
230 | } | 235 | } |