aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandChannel.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-01-27 20:29:06 +0000
committerJustin Clark-Casey (justincc)2011-01-27 20:36:50 +0000
commitbe3685b1a2ef8ebab25739fc5a5d632ed7359728 (patch)
treeaeb319707ad5cffedf9f9756e74e8833c3d30eb4 /OpenSim/Region/CoreModules/World/Land/LandChannel.cs
parentShow local IDs in "land show" output. (diff)
downloadopensim-SC_OLD-be3685b1a2ef8ebab25739fc5a5d632ed7359728.zip
opensim-SC_OLD-be3685b1a2ef8ebab25739fc5a5d632ed7359728.tar.gz
opensim-SC_OLD-be3685b1a2ef8ebab25739fc5a5d632ed7359728.tar.bz2
opensim-SC_OLD-be3685b1a2ef8ebab25739fc5a5d632ed7359728.tar.xz
When an oar is loaded, do not create a default parcel before loading the parcels from the OAR.
The region spanning parcel shouldn't exist in this situation. If it does, when the land data is loaded it is repersisted with a local ID which comes after the ones loaded via the oar, which obliterates the oar loaded one. Resaving the data we just loaded from the database is somewhat odd in itself (though this makes sense from the way that OAR loading was already using the same event).
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandChannel.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandChannel.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandChannel.cs b/OpenSim/Region/CoreModules/World/Land/LandChannel.cs
index 2959eb4..7d990c2 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandChannel.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandChannel.cs
@@ -117,10 +117,10 @@ namespace OpenSim.Region.CoreModules.World.Land
117 return new List<ILandObject>(); 117 return new List<ILandObject>();
118 } 118 }
119 119
120 public void Clear() 120 public void Clear(bool setupDefaultParcel)
121 { 121 {
122 if (m_landManagementModule != null) 122 if (m_landManagementModule != null)
123 m_landManagementModule.Clear(); 123 m_landManagementModule.Clear(setupDefaultParcel);
124 } 124 }
125 125
126 public List<ILandObject> ParcelsNearPoint(Vector3 position) 126 public List<ILandObject> ParcelsNearPoint(Vector3 position)