aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-01-27 18:48:48 +0000
committerJustin Clark-Casey (justincc)2011-01-27 18:48:48 +0000
commit5a26dc2743f176cc5f5fad0ae93aa8187a399f13 (patch)
treee48f513ed8ee8271c92930adbbeaf6c7fbd01798 /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
parentremove unused CreateBaseLand() (diff)
downloadopensim-SC_OLD-5a26dc2743f176cc5f5fad0ae93aa8187a399f13.zip
opensim-SC_OLD-5a26dc2743f176cc5f5fad0ae93aa8187a399f13.tar.gz
opensim-SC_OLD-5a26dc2743f176cc5f5fad0ae93aa8187a399f13.tar.bz2
opensim-SC_OLD-5a26dc2743f176cc5f5fad0ae93aa8187a399f13.tar.xz
Fix OAR parcel loading so that old parcels are replaced by the new instead of merged.
The --merge switch will still merge the old and new land parcelling.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 4db28e2..bee223a 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -636,6 +636,25 @@ namespace OpenSim.Region.CoreModules.World.Land
636 m_landList.Remove(local_id); 636 m_landList.Remove(local_id);
637 } 637 }
638 } 638 }
639
640 /// <summary>
641 /// Clear the scene of all parcels
642 /// </summary>
643 public void Clear()
644 {
645 lock (m_landList)
646 {
647 foreach (ILandObject lo in m_landList.Values)
648 {
649 //m_scene.SimulationDataService.RemoveLandObject(lo.LandData.GlobalID);
650 m_scene.EventManager.TriggerLandObjectRemoved(lo.LandData.GlobalID);
651 }
652
653 m_landList.Clear();
654 }
655
656 ResetSimLandObjects();
657 }
639 658
640 private void performFinalLandJoin(ILandObject master, ILandObject slave) 659 private void performFinalLandJoin(ILandObject master, ILandObject slave)
641 { 660 {