Set the estate owner to be the master avatar if it's not set.

prioritization
Melanie 2009-10-14 04:18:59 +01:00
parent 31a61bbeec
commit db4cdc0961
1 changed files with 6 additions and 0 deletions

View File

@ -200,6 +200,12 @@ namespace OpenSim.Services.Interfaces
Maturity = ConvertFrom.RegionSettings.Maturity; Maturity = ConvertFrom.RegionSettings.Maturity;
RegionSecret = ConvertFrom.regionSecret; RegionSecret = ConvertFrom.regionSecret;
EstateOwner = ConvertFrom.EstateSettings.EstateOwner; EstateOwner = ConvertFrom.EstateSettings.EstateOwner;
if (EstateOwner == UUID.Zero)
{
EstateOwner = ConvertFrom.MasterAvatarAssignedUUID;
ConvertFrom.EstateSettings.EstateOwner = EstateOwner;
ConvertFrom.EstateSettings.Save();
}
} }
public GridRegion(GridRegion ConvertFrom) public GridRegion(GridRegion ConvertFrom)