The hazards if unclean sourc trees. Yours truly got bitten this time.

Re-fix the re-fix from a clean build. This makes the region based
settings work as advertised
0.6.0-stable
Melanie Thielker 2008-07-26 18:54:59 +00:00
parent 3b1efa4348
commit 2a1bc318b0
1 changed files with 4 additions and 2 deletions

View File

@ -743,7 +743,10 @@ namespace OpenSim.Data.MySQL
}
DataRow row = rawsettings[0];
return buildRegionSettings(row);
RegionSettings newSettings = buildRegionSettings(row);
newSettings.OnSave += StoreRegionSettings;
return newSettings;
}
}
@ -1272,7 +1275,6 @@ namespace OpenSim.Data.MySQL
private static RegionSettings buildRegionSettings(DataRow row)
{
RegionSettings newSettings = new RegionSettings();
newSettings.OnSave += StoreRegionSettings;
newSettings.RegionUUID = new LLUUID((string) row["regionUUID"]);
newSettings.BlockTerraform = Convert.ToBoolean(row["block_terraform"]);