diff options
author | Melanie | 2010-07-21 12:03:44 +0100 |
---|---|---|
committer | Melanie | 2010-07-21 12:03:44 +0100 |
commit | f63a4c8f2f5a67fb7e14d6905c137c55aa9d4939 (patch) | |
tree | 9f03819e2c0b38bd68e5679012c684d5cc59d00e | |
parent | Resync with master (diff) | |
parent | Allow Megaregions to start properly after an unclean shutdown (diff) | |
download | opensim-SC-f63a4c8f2f5a67fb7e14d6905c137c55aa9d4939.zip opensim-SC-f63a4c8f2f5a67fb7e14d6905c137c55aa9d4939.tar.gz opensim-SC-f63a4c8f2f5a67fb7e14d6905c137c55aa9d4939.tar.bz2 opensim-SC-f63a4c8f2f5a67fb7e14d6905c137c55aa9d4939.tar.xz |
Merge branch 'master' into careminster-presence-refactor
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index daad3d2..f79bd23 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -136,6 +136,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
136 | 136 | ||
137 | protected SceneCommunicationService m_sceneGridService; | 137 | protected SceneCommunicationService m_sceneGridService; |
138 | public bool LoginsDisabled = true; | 138 | public bool LoginsDisabled = true; |
139 | public bool LoadingPrims = false; | ||
139 | 140 | ||
140 | public new float TimeDilation | 141 | public new float TimeDilation |
141 | { | 142 | { |
@@ -1906,6 +1907,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1906 | /// </summary> | 1907 | /// </summary> |
1907 | public virtual void LoadPrimsFromStorage(UUID regionID) | 1908 | public virtual void LoadPrimsFromStorage(UUID regionID) |
1908 | { | 1909 | { |
1910 | LoadingPrims = true; | ||
1909 | m_log.Info("[SCENE]: Loading objects from datastore"); | 1911 | m_log.Info("[SCENE]: Loading objects from datastore"); |
1910 | 1912 | ||
1911 | List<SceneObjectGroup> PrimsFromDB = m_storageManager.DataStore.LoadObjects(regionID); | 1913 | List<SceneObjectGroup> PrimsFromDB = m_storageManager.DataStore.LoadObjects(regionID); |
@@ -1929,6 +1931,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1929 | } | 1931 | } |
1930 | 1932 | ||
1931 | m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)"); | 1933 | m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)"); |
1934 | LoadingPrims = false; | ||
1932 | } | 1935 | } |
1933 | 1936 | ||
1934 | 1937 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 7053c02..fb75120 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -439,7 +439,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
439 | 439 | ||
440 | if ((m_scene.TestBorderCross(val - Vector3.UnitX, Cardinals.E) || m_scene.TestBorderCross(val + Vector3.UnitX, Cardinals.W) | 440 | if ((m_scene.TestBorderCross(val - Vector3.UnitX, Cardinals.E) || m_scene.TestBorderCross(val + Vector3.UnitX, Cardinals.W) |
441 | || m_scene.TestBorderCross(val - Vector3.UnitY, Cardinals.N) || m_scene.TestBorderCross(val + Vector3.UnitY, Cardinals.S)) | 441 | || m_scene.TestBorderCross(val - Vector3.UnitY, Cardinals.N) || m_scene.TestBorderCross(val + Vector3.UnitY, Cardinals.S)) |
442 | && !IsAttachmentCheckFull()) | 442 | && !IsAttachmentCheckFull() && (!m_scene.LoadingPrims)) |
443 | { | 443 | { |
444 | m_scene.CrossPrimGroupIntoNewRegion(val, this, true); | 444 | m_scene.CrossPrimGroupIntoNewRegion(val, this, true); |
445 | } | 445 | } |