mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
clear parcels uglysky on clearing override flag
This commit is contained in:
@@ -36,6 +36,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
void FromLightShare(RegionLightShareData wl);
|
||||
RegionLightShareData ToLightShare();
|
||||
byte[] GetDefaultAssetData(int type);
|
||||
void WindlightRefresh(int interpolate, bool notforparcel = true);
|
||||
|
||||
float GetRegionDayFractionTime();
|
||||
int GetRegionDayLength();
|
||||
|
||||
@@ -5884,16 +5884,22 @@ Environment.Exit(1);
|
||||
IEstateDataService estateDataService = EstateDataService;
|
||||
if (estateDataService != null)
|
||||
{
|
||||
bool parcelEnvOvr = RegionInfo.EstateSettings.AllowEnviromentOverride;
|
||||
RegionInfo.EstateSettings = estateDataService.LoadEstateSettings(RegionInfo.RegionID, false);
|
||||
TriggerEstateSunUpdate();
|
||||
if(parcelEnvOvr && !RegionInfo.EstateSettings.AllowEnviromentOverride)
|
||||
ClearAllParcelEnviroments();
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerEstateSunUpdate()
|
||||
public void ClearAllParcelEnviroments()
|
||||
{
|
||||
EventManager.TriggerEstateToolsSunUpdate(RegionInfo.RegionHandle);
|
||||
IEnvironmentModule envM = RequestModuleInterface<IEnvironmentModule>();
|
||||
if(LandChannel != null && envM != null)
|
||||
{
|
||||
LandChannel.ClearAllEnviroments();
|
||||
envM.WindlightRefresh(1,false);
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleReloadEstate(string module, string[] cmd)
|
||||
{
|
||||
if (MainConsole.Instance.ConsoleScene == null ||
|
||||
|
||||
Reference in New Issue
Block a user