sync some more things with work copy

master
UbitUmarov 2020-03-02 01:56:34 +00:00
parent 97cb6254ef
commit be16cf9531
7 changed files with 32 additions and 13 deletions

View File

@ -68,7 +68,8 @@ namespace OpenSim.Capabilities.Handlers
{"jpeg_id", AssetType.ImageJPEG}, {"jpeg_id", AssetType.ImageJPEG},
{"animatn_id", AssetType.Animation}, {"animatn_id", AssetType.Animation},
{"gesture_id", AssetType.Gesture}, {"gesture_id", AssetType.Gesture},
{"mesh_id", AssetType.Mesh} {"mesh_id", AssetType.Mesh},
{"settings_id", AssetType.Settings}
}; };
private IAssetService m_assetService; private IAssetService m_assetService;
@ -136,7 +137,7 @@ namespace OpenSim.Capabilities.Handlers
return responsedata; return responsedata;
} }
if(type == AssetType.Mesh || type == AssetType.Texture) if (type == AssetType.Mesh || type == AssetType.Texture)
responsedata["throttle"] = true; responsedata["throttle"] = true;
responsedata["content_type"] = asset.Metadata.ContentType; responsedata["content_type"] = asset.Metadata.ContentType;

View File

@ -237,6 +237,8 @@ namespace OpenSim.Framework
set { m_DenyMinors = value; } set { m_DenyMinors = value; }
} }
public bool AllowEnviromentOverride {get; set;} = true;
// All those lists... // All those lists...
// //
private List<UUID> l_EstateManagers = new List<UUID>(); private List<UUID> l_EstateManagers = new List<UUID>();

View File

@ -200,9 +200,13 @@ namespace OpenSim.Region.ClientStack.Linden
if (r.ContainsKey("override_public_access")) if (r.ContainsKey("override_public_access"))
overridePublicAccess = !r["override_public_access"].AsBoolean(); overridePublicAccess = !r["override_public_access"].AsBoolean();
bool allowEnviromentOverride = m_scene.RegionInfo.EstateSettings.AllowEnviromentOverride;
if (r.ContainsKey("override_environment"))
allowEnviromentOverride = !r["override_environment"].AsBoolean();
ok = m_EstateModule.handleEstateChangeInfoCap(estateName, invoice, sunHour, sunFixed, ok = m_EstateModule.handleEstateChangeInfoCap(estateName, invoice, sunHour, sunFixed,
externallyVisible, allowDirectTeleport, denyAnonymous, denyAgeUnverified, externallyVisible, allowDirectTeleport, denyAnonymous, denyAgeUnverified,
alloVoiceChat, overridePublicAccess); alloVoiceChat, overridePublicAccess, allowEnviromentOverride);
} }
catch catch
{ {

View File

@ -827,8 +827,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// allow access override (was taxfree) // allow access override (was taxfree)
if (!Scene.RegionInfo.EstateSettings.TaxFree) // this is now wrong means !ALLOW_ACCESS_OVERRIDE if (!Scene.RegionInfo.EstateSettings.TaxFree) // this is now wrong means !ALLOW_ACCESS_OVERRIDE
//flags |= RegionFlags.AllowParcelAccessOverride; flags |= RegionFlags.AllowParcelAccessOverride;
flags |= RegionFlags.TaxFree;
if (Scene.RegionInfo.RegionSettings.BlockTerraform) if (Scene.RegionInfo.RegionSettings.BlockTerraform)
flags |= RegionFlags.BlockTerraform; flags |= RegionFlags.BlockTerraform;
@ -6607,9 +6606,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
LLSDxmlEncode.AddEndMapAndArray(sb); LLSDxmlEncode.AddEndMapAndArray(sb);
bool allowenvovr = Scene.RegionInfo.EstateSettings.AllowEnviromentOverride;
LLSDxmlEncode.AddArrayAndMap("ParcelEnvironmentBlock", sb); LLSDxmlEncode.AddArrayAndMap("ParcelEnvironmentBlock", sb);
LLSDxmlEncode.AddElem("ParcelEnvironmentVersion", -1, sb); LLSDxmlEncode.AddElem("ParcelEnvironmentVersion", allowenvovr ? -1: -1, sb);
LLSDxmlEncode.AddElem("RegionAllowEnvironmentOverride", true, sb); LLSDxmlEncode.AddElem("RegionAllowEnvironmentOverride", allowenvovr, sb);
LLSDxmlEncode.AddEndMapAndArray(sb); LLSDxmlEncode.AddEndMapAndArray(sb);
bool accessovr = !Scene.RegionInfo.EstateSettings.TaxFree; bool accessovr = !Scene.RegionInfo.EstateSettings.TaxFree;

View File

@ -183,6 +183,8 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
flags |= RegionFlags.ResetHomeOnTeleport; flags |= RegionFlags.ResetHomeOnTeleport;
if (Scene.RegionInfo.EstateSettings.AllowEnviromentOverride)
flags |= RegionFlags.AllowEnviromentOverride;
// TODO: SkipUpdateInterestList // TODO: SkipUpdateInterestList
@ -1401,7 +1403,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
} }
} }
private void HandleRegionInfoRequest(IClientAPI remote_client) public void HandleRegionInfoRequest(IClientAPI remote_client)
{ {
RegionInfoForEstateMenuArgs args = new RegionInfoForEstateMenuArgs(); RegionInfoForEstateMenuArgs args = new RegionInfoForEstateMenuArgs();
args.billableFactor = Scene.RegionInfo.EstateSettings.BillableFactor; args.billableFactor = Scene.RegionInfo.EstateSettings.BillableFactor;
@ -1555,6 +1557,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
else else
Scene.RegionInfo.EstateSettings.TaxFree = true; Scene.RegionInfo.EstateSettings.TaxFree = true;
if ((parms1 & 0x00000200) != 0)
Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = true;
else
Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = false;
if ((parms1 & 0x00100000) != 0) if ((parms1 & 0x00100000) != 0)
Scene.RegionInfo.EstateSettings.AllowDirectTeleport = true; Scene.RegionInfo.EstateSettings.AllowDirectTeleport = true;
else else
@ -1600,7 +1607,8 @@ namespace OpenSim.Region.CoreModules.World.Estate
bool externallyVisible, bool externallyVisible,
bool allowDirectTeleport, bool allowDirectTeleport,
bool denyAnonymous, bool denyAgeUnverified, bool denyAnonymous, bool denyAgeUnverified,
bool alloVoiceChat, bool overridePublicAccess) bool alloVoiceChat, bool overridePublicAccess,
bool allowEnviromentOverride)
{ {
if (sunHour == 0) if (sunHour == 0)
{ {
@ -1624,6 +1632,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
// taxfree is now !AllowAccessOverride // taxfree is now !AllowAccessOverride
Scene.RegionInfo.EstateSettings.TaxFree = overridePublicAccess; Scene.RegionInfo.EstateSettings.TaxFree = overridePublicAccess;
Scene.RegionInfo.EstateSettings.DenyMinors = denyAgeUnverified; Scene.RegionInfo.EstateSettings.DenyMinors = denyAgeUnverified;
Scene.RegionInfo.EstateSettings.AllowEnviromentOverride = allowEnviromentOverride;
Scene.EstateDataService.StoreEstateSettings(Scene.RegionInfo.EstateSettings); Scene.EstateDataService.StoreEstateSettings(Scene.RegionInfo.EstateSettings);
TriggerEstateInfoChange(); TriggerEstateInfoChange();
@ -1696,8 +1705,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (Scene.RegionInfo.EstateSettings.FixedSun) if (Scene.RegionInfo.EstateSettings.FixedSun)
flags |= RegionFlags.SunFixed; flags |= RegionFlags.SunFixed;
if (!Scene.RegionInfo.EstateSettings.TaxFree) // this is now wrong means !ALLOW_ACCESS_OVERRIDE if (!Scene.RegionInfo.EstateSettings.TaxFree) // this is now wrong means !ALLOW_ACCESS_OVERRIDE
flags |= RegionFlags.TaxFree; flags |= RegionFlags.AllowParcelAccessOverride;
if(Scene.RegionInfo.EstateSettings.AllowEnviromentOverride)
flags |= RegionFlags.AllowEnviromentOverride;
if (Scene.RegionInfo.EstateSettings.PublicAccess) //?? if (Scene.RegionInfo.EstateSettings.PublicAccess) //??
flags |= (RegionFlags.PublicAllowed | RegionFlags.ExternallyVisible); flags |= (RegionFlags.PublicAllowed | RegionFlags.ExternallyVisible);

View File

@ -160,7 +160,7 @@ namespace OpenSim.Region.CoreModules
// Generate initial wind values // Generate initial wind values
GenWind(); GenWind();
// hopefully this will not be the same for all regions on same instance // hopefully this will not be the same for all regions on same instance
m_dataVersion = (int)m_scene.AllocateLocalId(); m_dataVersion = m_scene.AllocateIntId();
// Mark Module Ready for duty // Mark Module Ready for duty
m_ready = true; m_ready = true;
} }

View File

@ -69,7 +69,8 @@ namespace OpenSim.Region.Framework.Interfaces
/// </summary> /// </summary>
bool IsTerrainXfer(ulong xferID); bool IsTerrainXfer(ulong xferID);
bool handleEstateChangeInfoCap(string estateName, UUID invoice, int sunHour, bool sunFixed, bool handleEstateChangeInfoCap(string estateName, UUID invoice, int sunHour, bool sunFixed,
bool externallyVisible, bool allowDirectTeleport, bool denyAnonymous, bool denyAgeUnverified, bool externallyVisible, bool allowDirectTeleport, bool denyAnonymous, bool denyAgeUnverified,
bool alloVoiceChat, bool overridePublicAccess); bool alloVoiceChat, bool overridePublicAccess, bool allowEnviromentOverride);
void HandleRegionInfoRequest(IClientAPI remote_client);
} }
} }