From 24a093035b5dba3754ec92128a18a9ae5a01b243 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 23 Aug 2015 01:42:51 +0100 Subject: more fixes on map --- .../Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Warp3DMap') diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs index 17066bd..f538c9e 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs @@ -125,10 +125,12 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap public Bitmap CreateMapTile() { + /* this must be on all map, not just its image if ((DateTime.Now - lastImageTime).TotalSeconds < 3600) { - return lastImage.Clone(new Rectangle(0, 0, 256, 256), lastImage.PixelFormat); + return (Bitmap)lastImage.Clone(); } + */ List renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory()); if (renderers.Count > 0) @@ -147,10 +149,12 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap Bitmap tile = CreateMapTile(viewport, false); m_primMesher = null; - + return tile; +/* lastImage = tile; lastImageTime = DateTime.Now; - return lastImage.Clone(new Rectangle(0, 0, 256, 256), lastImage.PixelFormat); + return (Bitmap)lastImage.Clone(); + */ } public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures) -- cgit v1.1