More debugging
parent
17c25796b8
commit
4ab19afc0a
|
@ -446,6 +446,8 @@ namespace OpenSim.Region.Environment.LandManagement
|
|||
/// </summary>
|
||||
public void forceUpdateLandInfo()
|
||||
{
|
||||
// TODO: REMOVE (TEDD)
|
||||
Console.WriteLine("addLandObject()");
|
||||
updateAABBAndAreaValues();
|
||||
updateLandBitmapByteArray();
|
||||
}
|
||||
|
|
|
@ -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
|
|||
/// <param name="new_land">The land object being added</param>
|
||||
public Land addLandObject(Land new_land)
|
||||
{
|
||||
// TODO: REMOVE (TEDD)
|
||||
Console.WriteLine("addLandObject()");
|
||||
lastLandLocalID++;
|
||||
new_land.landData.localID = lastLandLocalID;
|
||||
landList.Add(lastLandLocalID, new_land.Copy());
|
||||
|
|
|
@ -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> 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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue