store all terrain in Variable2DGzip format
parent
592a915d8d
commit
4dc787eb32
|
@ -201,6 +201,7 @@ namespace OpenSim.Framework
|
||||||
public override bool GetDatabaseBlob(out int DBRevisionCode, out Array blob)
|
public override bool GetDatabaseBlob(out int DBRevisionCode, out Array blob)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
/* save all as Variable2DGzip
|
||||||
if (SizeX == Constants.RegionSize && SizeY == Constants.RegionSize)
|
if (SizeX == Constants.RegionSize && SizeY == Constants.RegionSize)
|
||||||
{
|
{
|
||||||
DBRevisionCode = (int)DBTerrainRevision.Legacy256;
|
DBRevisionCode = (int)DBTerrainRevision.Legacy256;
|
||||||
|
@ -209,12 +210,13 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
*/
|
||||||
DBRevisionCode = (int)DBTerrainRevision.Variable2DGzip;
|
DBRevisionCode = (int)DBTerrainRevision.Variable2DGzip;
|
||||||
// DBRevisionCode = (int)DBTerrainRevision.Variable2D;
|
// DBRevisionCode = (int)DBTerrainRevision.Variable2D;
|
||||||
blob = ToCompressedTerrainSerializationV2DGzip();
|
blob = ToCompressedTerrainSerializationV2DGzip();
|
||||||
// blob = ToCompressedTerrainSerializationV2D();
|
// blob = ToCompressedTerrainSerializationV2D();
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
// }
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue