From 33a062612f9fafcb7b4c0e8ac60937c448ce3c10 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 21 Jan 2019 06:05:21 +0000 Subject: remove terraindata abstraction layer, since we only have heightmap type --- OpenSim/Data/PGSQL/PGSQLSimulationData.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Data/PGSQL') 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 // Legacy entry point for when terrain was always a 256x256 heightmap public void StoreTerrain(double[,] terrain, UUID regionID) { - StoreTerrain(new HeightmapTerrainData(terrain), regionID); + StoreTerrain(new TerrainData(terrain), regionID); } /// @@ -1797,7 +1797,7 @@ namespace OpenSim.Data.PGSQL if (!(primRow["DynAttrs"] is System.DBNull) && (string)primRow["DynAttrs"] != "") prim.DynAttrs = DAMap.FromXml((string)primRow["DynAttrs"]); else - prim.DynAttrs = new DAMap(); + prim.DynAttrs = null; prim.PhysicsShapeType = Convert.ToByte(primRow["PhysicsShapeType"]); prim.Density = Convert.ToSingle(primRow["Density"]); @@ -2245,7 +2245,7 @@ namespace OpenSim.Data.PGSQL else parameters.Add(_Database.CreateParameter("PhysInertia", String.Empty)); - if (prim.DynAttrs.CountNamespaces > 0) + if (prim.DynAttrs != null && prim.DynAttrs.CountNamespaces > 0) parameters.Add(_Database.CreateParameter("DynAttrs", prim.DynAttrs.ToXml())); else parameters.Add(_Database.CreateParameter("DynAttrs", null)); -- cgit v1.1