From 4ab19afc0a599a575baeab3a06872804b3f5108e Mon Sep 17 00:00:00 2001
From: Tedd Hansen
Date: Sat, 19 Jan 2008 20:45:09 +0000
Subject: More debugging
---
OpenSim/Region/Environment/LandManagement/Land.cs | 2 ++
OpenSim/Region/Environment/LandManagement/LandManager.cs | 10 ++++++++++
OpenSim/Region/Environment/Scenes/Scene.cs | 4 ++++
3 files changed, 16 insertions(+)
diff --git a/OpenSim/Region/Environment/LandManagement/Land.cs b/OpenSim/Region/Environment/LandManagement/Land.cs
index 5c99ffd..c23d7c7 100644
--- a/OpenSim/Region/Environment/LandManagement/Land.cs
+++ b/OpenSim/Region/Environment/LandManagement/Land.cs
@@ -446,6 +446,8 @@ namespace OpenSim.Region.Environment.LandManagement
///
public void forceUpdateLandInfo()
{
+ // TODO: REMOVE (TEDD)
+ Console.WriteLine("addLandObject()");
updateAABBAndAreaValues();
updateLandBitmapByteArray();
}
diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs
index 3969932..3bd8848 100644
--- a/OpenSim/Region/Environment/LandManagement/LandManager.cs
+++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs
@@ -127,9 +127,17 @@ namespace OpenSim.Region.Environment.LandManagement
public void IncomingLandObjectFromStorage(LandData data)
{
+ // TODO: REMOVE (TEDD)
+ MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: " + data.localID);
Land new_land = new Land(data.ownerID, data.isGroupOwned, m_scene);
+ // TODO: REMOVE (TEDD)
+ MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: data.Copy()");
new_land.landData = data.Copy();
+ // TODO: REMOVE (TEDD)
+ MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: new_land.setLandBitmapFromByteArray()");
new_land.setLandBitmapFromByteArray();
+ // TODO: REMOVE (TEDD)
+ MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: addLandObject(new_land)");
addLandObject(new_land);
}
@@ -158,6 +166,8 @@ namespace OpenSim.Region.Environment.LandManagement
/// The land object being added
public Land addLandObject(Land new_land)
{
+ // TODO: REMOVE (TEDD)
+ Console.WriteLine("addLandObject()");
lastLandLocalID++;
new_land.landData.localID = lastLandLocalID;
landList.Add(lastLandLocalID, new_land.Copy());
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index e84a24e..f3564d1 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -900,19 +900,23 @@ namespace OpenSim.Region.Environment.Scenes
public void loadAllLandObjectsFromStorage()
{
MainLog.Instance.Verbose("SCENE", "Loading land objects from storage");
+ // TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: DataStore.LoadLandObjects");
List landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID);
if (landData.Count == 0)
{
+ // TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: NoLandDataFromStorage()");
m_LandManager.NoLandDataFromStorage();
}
else
{
+ // TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "LandObjLoad debug: IncomingLandObjectsFromStorage(landData)");
m_LandManager.IncomingLandObjectsFromStorage(landData);
}
+ // TODO: REMOVE (TEDD)
MainLog.Instance.Verbose("SCENE", "Done loading land objects from storage");
}
--
cgit v1.1