From 7a9f5ed6b351a8d819604e9ad501547fb5fa6947 Mon Sep 17 00:00:00 2001 From: Dalien Talbot Date: Thu, 13 Sep 2007 13:09:14 +0000 Subject: Fix the terrain heightmap load from images (tested PNG and GIF). --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index 943824b..fe6eefb 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs @@ -463,7 +463,8 @@ namespace OpenSim.Region.Terrain break; case "img": - heightmap.LoadImage(filenameL); + heightmap = heightmap.LoadImage(filenameL); + tainted++; break; default: -- cgit v1.1