aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-08-27 21:24:54 +0100
committerUbitUmarov2019-08-27 21:24:54 +0100
commit60fa28740abaddd8f55513063ae528bac28ac7c7 (patch)
treedc7864f51d083b13c3587937eae27671285f108a
parentmantis 8583: osGetRegionMapTexture(); now returns prim region map textureID, ... (diff)
downloadopensim-SC-60fa28740abaddd8f55513063ae528bac28ac7c7.zip
opensim-SC-60fa28740abaddd8f55513063ae528bac28ac7c7.tar.gz
opensim-SC-60fa28740abaddd8f55513063ae528bac28ac7c7.tar.bz2
opensim-SC-60fa28740abaddd8f55513063ae528bac28ac7c7.tar.xz
mantis 8583: update region information on Grid on map regeneration
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs2
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs6
3 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 15f522d..f8a5636 100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -12163,7 +12163,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12163 } 12163 }
12164 12164
12165 m_lastMapRegenTime = Double.MaxValue; 12165 m_lastMapRegenTime = Double.MaxValue;
12166 mapModule.GenerateMaptile(); 12166 ((Scene)Scene).RegenerateMaptileAndReregister(this, null);
12167 SendAlertMessage("Terrain map generated"); 12167 SendAlertMessage("Terrain map generated");
12168 m_lastMapRegenTime = now; 12168 m_lastMapRegenTime = now;
12169 } 12169 }
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index e7b9cb5..1dab18e 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -1545,7 +1545,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1545 if (consoleScene != null && consoleScene != m_scene) 1545 if (consoleScene != null && consoleScene != m_scene)
1546 return; 1546 return;
1547 1547
1548 GenerateMaptile(); 1548 m_scene.RegenerateMaptileAndReregister(this, null);
1549 } 1549 }
1550 1550
1551 public OSD HandleRemoteMapItemRequest(string path, OSD request, string endpoint) 1551 public OSD HandleRemoteMapItemRequest(string path, OSD request, string endpoint)
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 377ba29..03f46bb 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.Framework.Scenes
1040 { 1040 {
1041 m_mapGenerationTimer.Interval = maptileRefresh * 1000; 1041 m_mapGenerationTimer.Interval = maptileRefresh * 1000;
1042 m_mapGenerationTimer.Elapsed += RegenerateMaptileAndReregister; 1042 m_mapGenerationTimer.Elapsed += RegenerateMaptileAndReregister;
1043 m_mapGenerationTimer.AutoReset = true; 1043 m_mapGenerationTimer.AutoReset = false;
1044 m_mapGenerationTimer.Start(); 1044 m_mapGenerationTimer.Start();
1045 } 1045 }
1046 } 1046 }
@@ -6026,7 +6026,9 @@ Environment.Exit(1);
6026 // so that all simulators can retrieve it 6026 // so that all simulators can retrieve it
6027 string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo)); 6027 string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo));
6028 if (error != string.Empty) 6028 if (error != string.Empty)
6029 throw new Exception(error); 6029 throw new Exception(error);
6030 if(m_generateMaptiles)
6031 m_mapGenerationTimer.Start();
6030 } 6032 }
6031 6033
6032 /// <summary> 6034 /// <summary>