another missing file
parent
fad63ca814
commit
da0ea2698b
|
@ -823,7 +823,7 @@ namespace OpenSim.Data.SQLite
|
||||||
// Legacy entry point for when terrain was always a 256x256 hieghtmap
|
// Legacy entry point for when terrain was always a 256x256 hieghtmap
|
||||||
public void StoreTerrain(double[,] ter, UUID regionID)
|
public void StoreTerrain(double[,] ter, UUID regionID)
|
||||||
{
|
{
|
||||||
StoreTerrain(new HeightmapTerrainData(ter), regionID);
|
StoreTerrain(new TerrainData(ter), regionID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -835,8 +835,7 @@ namespace OpenSim.Data.SQLite
|
||||||
{
|
{
|
||||||
lock (ds)
|
lock (ds)
|
||||||
{
|
{
|
||||||
using (
|
using (SqliteCommand cmd = new SqliteCommand("delete from terrain where RegionUUID=:RegionUUID", m_conn))
|
||||||
SqliteCommand cmd = new SqliteCommand("delete from terrain where RegionUUID=:RegionUUID", m_conn))
|
|
||||||
{
|
{
|
||||||
cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString()));
|
cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString()));
|
||||||
cmd.ExecuteNonQuery();
|
cmd.ExecuteNonQuery();
|
||||||
|
@ -1809,7 +1808,7 @@ namespace OpenSim.Data.SQLite
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
prim.DynAttrs = new DAMap();
|
prim.DynAttrs = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
prim.PhysicsShapeType = Convert.ToByte(row["PhysicsShapeType"]);
|
prim.PhysicsShapeType = Convert.ToByte(row["PhysicsShapeType"]);
|
||||||
|
@ -2247,7 +2246,7 @@ namespace OpenSim.Data.SQLite
|
||||||
row["AttachedPosY"] = prim.AttachedPos.Y;
|
row["AttachedPosY"] = prim.AttachedPos.Y;
|
||||||
row["AttachedPosZ"] = prim.AttachedPos.Z;
|
row["AttachedPosZ"] = prim.AttachedPos.Z;
|
||||||
|
|
||||||
if (prim.DynAttrs.CountNamespaces > 0)
|
if (prim.DynAttrs!= null && prim.DynAttrs.CountNamespaces > 0)
|
||||||
row["DynAttrs"] = prim.DynAttrs.ToXml();
|
row["DynAttrs"] = prim.DynAttrs.ToXml();
|
||||||
else
|
else
|
||||||
row["DynAttrs"] = null;
|
row["DynAttrs"] = null;
|
||||||
|
|
Loading…
Reference in New Issue