diff options
author | UbitUmarov | 2019-01-21 06:05:21 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-21 06:05:21 +0000 |
commit | 33a062612f9fafcb7b4c0e8ac60937c448ce3c10 (patch) | |
tree | e6d716b001e94e1d9274e0adc4e8513d2aa48148 /OpenSim/Data | |
parent | this looks more like ubode (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 6 | ||||
-rw-r--r-- | OpenSim/Data/Null/NullSimulationData.cs | 2 | ||||
-rwxr-xr-x | OpenSim/Data/PGSQL/PGSQLSimulationData.cs | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index c09154d..c5d7c47 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -598,7 +598,7 @@ namespace OpenSim.Data.MySQL | |||
598 | // Legacy entry point for when terrain was always a 256x256 hieghtmap | 598 | // Legacy entry point for when terrain was always a 256x256 hieghtmap |
599 | public void StoreTerrain(double[,] ter, UUID regionID) | 599 | public void StoreTerrain(double[,] ter, UUID regionID) |
600 | { | 600 | { |
601 | StoreTerrain(new HeightmapTerrainData(ter), regionID); | 601 | StoreTerrain(new TerrainData(ter), regionID); |
602 | } | 602 | } |
603 | 603 | ||
604 | public void StoreTerrain(TerrainData terrData, UUID regionID) | 604 | public void StoreTerrain(TerrainData terrData, UUID regionID) |
@@ -1463,7 +1463,7 @@ namespace OpenSim.Data.MySQL | |||
1463 | if (!(row["DynAttrs"] is System.DBNull)) | 1463 | if (!(row["DynAttrs"] is System.DBNull)) |
1464 | prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); | 1464 | prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); |
1465 | else | 1465 | else |
1466 | prim.DynAttrs = new DAMap(); | 1466 | prim.DynAttrs = null; |
1467 | 1467 | ||
1468 | if (!(row["KeyframeMotion"] is DBNull)) | 1468 | if (!(row["KeyframeMotion"] is DBNull)) |
1469 | { | 1469 | { |
@@ -1880,7 +1880,7 @@ namespace OpenSim.Data.MySQL | |||
1880 | else | 1880 | else |
1881 | cmd.Parameters.AddWithValue("Vehicle", String.Empty); | 1881 | cmd.Parameters.AddWithValue("Vehicle", String.Empty); |
1882 | 1882 | ||
1883 | if (prim.DynAttrs.CountNamespaces > 0) | 1883 | if (prim.DynAttrs != null && prim.DynAttrs.CountNamespaces > 0) |
1884 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); | 1884 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); |
1885 | else | 1885 | else |
1886 | cmd.Parameters.AddWithValue("DynAttrs", null); | 1886 | cmd.Parameters.AddWithValue("DynAttrs", null); |
diff --git a/OpenSim/Data/Null/NullSimulationData.cs b/OpenSim/Data/Null/NullSimulationData.cs index 7bb6da3..97e4b79 100644 --- a/OpenSim/Data/Null/NullSimulationData.cs +++ b/OpenSim/Data/Null/NullSimulationData.cs | |||
@@ -151,7 +151,7 @@ namespace OpenSim.Data.Null | |||
151 | // Legacy. Just don't do this. | 151 | // Legacy. Just don't do this. |
152 | public void StoreTerrain(double[,] ter, UUID regionID) | 152 | public void StoreTerrain(double[,] ter, UUID regionID) |
153 | { | 153 | { |
154 | TerrainData terrData = new HeightmapTerrainData(ter); | 154 | TerrainData terrData = new TerrainData(ter); |
155 | StoreTerrain(terrData, regionID); | 155 | StoreTerrain(terrData, regionID); |
156 | } | 156 | } |
157 | 157 | ||
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)); |