diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index afdb95b..4d5c1e7 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1812,33 +1812,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1812 | 1812 | ||
1813 | } | 1813 | } |
1814 | 1814 | ||
1815 | /// <summary> | ||
1816 | /// Create a terrain texture for this scene | ||
1817 | /// </summary> | ||
1818 | public void CreateTerrainTexture() | ||
1819 | { | ||
1820 | //create a texture asset of the terrain | ||
1821 | IMapImageGenerator terrain = RequestModuleInterface<IMapImageGenerator>(); | ||
1822 | |||
1823 | // Cannot create a map for a nonexistant heightmap yet. | ||
1824 | if (Heightmap == null) | ||
1825 | return; | ||
1826 | |||
1827 | if (terrain == null) | ||
1828 | return; | ||
1829 | |||
1830 | byte[] data = terrain.WriteJpeg2000Image("defaultstripe.png"); | ||
1831 | if (data != null) | ||
1832 | { | ||
1833 | IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>(); | ||
1834 | |||
1835 | if (mapModule != null) | ||
1836 | mapModule.RegenerateMaptile(data); | ||
1837 | else | ||
1838 | m_log.DebugFormat("[SCENE]: MapModule is null, can't save maptile"); | ||
1839 | } | ||
1840 | } | ||
1841 | |||
1842 | #endregion | 1815 | #endregion |
1843 | 1816 | ||
1844 | #region Load Land | 1817 | #region Load Land |