Patch #9148
Patch 5 in the region settings series. Adds a migration to ensure corrupted data is purged and re-read from defaults. Some changes. Still no full functionality0.6.0-stable
parent
e712678689
commit
12173034d9
|
@ -0,0 +1,9 @@
|
||||||
|
# 1 "010_RegionStore.sql"
|
||||||
|
# 1 "<built-in>"
|
||||||
|
# 1 "<command line>"
|
||||||
|
# 1 "010_RegionStore.sql"
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
DELETE FROM regionsettings;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -0,0 +1,5 @@
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
delete from regionsettings;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -68,19 +68,19 @@ namespace OpenSim.Framework
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_INT32,
|
ConfigurationOption.ConfigurationTypes.TYPE_INT32,
|
||||||
String.Empty, "21", true);
|
String.Empty, "21", true);
|
||||||
|
|
||||||
configMember.addConfigurationOption("terrain_detail_0",
|
configMember.addConfigurationOption("terrain_base_0",
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
||||||
|
|
||||||
configMember.addConfigurationOption("terrain_detail_1",
|
configMember.addConfigurationOption("terrain_base_1",
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
||||||
|
|
||||||
configMember.addConfigurationOption("terrain_detail_2",
|
configMember.addConfigurationOption("terrain_base_2",
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
||||||
|
|
||||||
configMember.addConfigurationOption("terrain_detail_3",
|
configMember.addConfigurationOption("terrain_base_3",
|
||||||
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
|
||||||
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
String.Empty, "00000000-0000-0000-0000-000000000000",true);
|
||||||
|
|
||||||
|
@ -176,17 +176,17 @@ namespace OpenSim.Framework
|
||||||
else
|
else
|
||||||
m_Maturity = 1;
|
m_Maturity = 1;
|
||||||
break;
|
break;
|
||||||
case "terrain_detail_0":
|
case "terrain_base_0":
|
||||||
m_TerrainTexture1 = (LLUUID)value;
|
m_TerrainTexture1 = (LLUUID)value;
|
||||||
break;
|
break;
|
||||||
case "terrain_detail_1":
|
case "terrain_base_1":
|
||||||
m_TerrainTexture1 = (LLUUID)value;
|
m_TerrainTexture2 = (LLUUID)value;
|
||||||
break;
|
break;
|
||||||
case "terrain_detail_2":
|
case "terrain_base_2":
|
||||||
m_TerrainTexture1 = (LLUUID)value;
|
m_TerrainTexture3 = (LLUUID)value;
|
||||||
break;
|
break;
|
||||||
case "terrain_detail_3":
|
case "terrain_base_3":
|
||||||
m_TerrainTexture1 = (LLUUID)value;
|
m_TerrainTexture4 = (LLUUID)value;
|
||||||
break;
|
break;
|
||||||
case "terrain_start_height_0":
|
case "terrain_start_height_0":
|
||||||
m_Elevation1SW = (double)value;
|
m_Elevation1SW = (double)value;
|
||||||
|
|
Loading…
Reference in New Issue