aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL
diff options
context:
space:
mode:
authorUbitUmarov2019-01-21 06:05:21 +0000
committerUbitUmarov2019-01-21 06:05:21 +0000
commit33a062612f9fafcb7b4c0e8ac60937c448ce3c10 (patch)
treee6d716b001e94e1d9274e0adc4e8513d2aa48148 /OpenSim/Data/PGSQL
parentthis looks more like ubode (diff)
downloadopensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.zip
opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.gz
opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.bz2
opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.xz
remove terraindata abstraction layer, since we only have heightmap type
Diffstat (limited to 'OpenSim/Data/PGSQL')
-rwxr-xr-xOpenSim/Data/PGSQL/PGSQLSimulationData.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
index 35cd723..569cc80 100755
--- a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
@@ -610,7 +610,7 @@ namespace OpenSim.Data.PGSQL
610 // Legacy entry point for when terrain was always a 256x256 heightmap 610 // Legacy entry point for when terrain was always a 256x256 heightmap
611 public void StoreTerrain(double[,] terrain, UUID regionID) 611 public void StoreTerrain(double[,] terrain, UUID regionID)
612 { 612 {
613 StoreTerrain(new HeightmapTerrainData(terrain), regionID); 613 StoreTerrain(new TerrainData(terrain), regionID);
614 } 614 }
615 615
616 /// <summary> 616 /// <summary>
@@ -1797,7 +1797,7 @@ namespace OpenSim.Data.PGSQL
1797 if (!(primRow["DynAttrs"] is System.DBNull) && (string)primRow["DynAttrs"] != "") 1797 if (!(primRow["DynAttrs"] is System.DBNull) && (string)primRow["DynAttrs"] != "")
1798 prim.DynAttrs = DAMap.FromXml((string)primRow["DynAttrs"]); 1798 prim.DynAttrs = DAMap.FromXml((string)primRow["DynAttrs"]);
1799 else 1799 else
1800 prim.DynAttrs = new DAMap(); 1800 prim.DynAttrs = null;
1801 1801
1802 prim.PhysicsShapeType = Convert.ToByte(primRow["PhysicsShapeType"]); 1802 prim.PhysicsShapeType = Convert.ToByte(primRow["PhysicsShapeType"]);
1803 prim.Density = Convert.ToSingle(primRow["Density"]); 1803 prim.Density = Convert.ToSingle(primRow["Density"]);
@@ -2245,7 +2245,7 @@ namespace OpenSim.Data.PGSQL
2245 else 2245 else
2246 parameters.Add(_Database.CreateParameter("PhysInertia", String.Empty)); 2246 parameters.Add(_Database.CreateParameter("PhysInertia", String.Empty));
2247 2247
2248 if (prim.DynAttrs.CountNamespaces > 0) 2248 if (prim.DynAttrs != null && prim.DynAttrs.CountNamespaces > 0)
2249 parameters.Add(_Database.CreateParameter("DynAttrs", prim.DynAttrs.ToXml())); 2249 parameters.Add(_Database.CreateParameter("DynAttrs", prim.DynAttrs.ToXml()));
2250 else 2250 else
2251 parameters.Add(_Database.CreateParameter("DynAttrs", null)); 2251 parameters.Add(_Database.CreateParameter("DynAttrs", null));