diff options
author | Justin Clark-Casey (justincc) | 2014-01-23 23:44:21 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-01-23 23:44:21 +0000 |
commit | a859464e91f724816c2ba588a541981469d58d2b (patch) | |
tree | 50ede00a6137a29316f22229d537618bd7db2c53 /OpenSim/Region/CoreModules/World/LegacyMap | |
parent | Stop exceptions being generated on agent connection if a telehub object has b... (diff) | |
download | opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.zip opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.gz opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.bz2 opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.xz |
Add "generate map" console command to allow manual regeneration and storage of maptiles
Primarily for test purposes though could be useful if one prefers to manually update the map tile
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs index 40638f8..61ba5f3 100644 --- a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs | |||
@@ -127,7 +127,10 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap | |||
127 | try | 127 | try |
128 | { | 128 | { |
129 | using (Bitmap mapbmp = CreateMapTile()) | 129 | using (Bitmap mapbmp = CreateMapTile()) |
130 | return OpenJPEG.EncodeFromImage(mapbmp, true); | 130 | { |
131 | if (mapbmp != null) | ||
132 | return OpenJPEG.EncodeFromImage(mapbmp, true); | ||
133 | } | ||
131 | } | 134 | } |
132 | catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke | 135 | catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke |
133 | { | 136 | { |