diff options
author | Melanie Thielker | 2010-07-21 12:16:30 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-07-21 12:16:30 +0200 |
commit | d4022becc3e0911a748e37951ef2d7b24579a4ed (patch) | |
tree | 39bba6a44a6f6682eb7e89245fa265d0a4da9f10 | |
parent | Refine autoreturn a bit (diff) | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC-d4022becc3e0911a748e37951ef2d7b24579a4ed.zip opensim-SC-d4022becc3e0911a748e37951ef2d7b24579a4ed.tar.gz opensim-SC-d4022becc3e0911a748e37951ef2d7b24579a4ed.tar.bz2 opensim-SC-d4022becc3e0911a748e37951ef2d7b24579a4ed.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to '')
-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 e738dd2..24d260e 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 | } |