Send up the part missing from the Avination Estate commit.
Warning - contains a small migration.user_profiles
parent
543d1fe70b
commit
81d8deb1a8
|
@ -77,5 +77,11 @@ BEGIN;
|
||||||
ALTER TABLE estate_settings AUTO_INCREMENT = 100;
|
ALTER TABLE estate_settings AUTO_INCREMENT = 100;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 33 #---------------------
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE estate_settings ADD COLUMN `AllowLandmark` tinyint(4) NOT NULL default '1';
|
||||||
|
ALTER TABLE estate_settings ADD COLUMN `AllowParcelChanges` tinyint(4) NOT NULL default '1';
|
||||||
|
ALTER TABLE estate_settings ADD COLUMN `AllowSetHome` tinyint(4) NOT NULL default '1';
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
|
|
@ -86,3 +86,12 @@ begin;
|
||||||
alter table estate_settings add column DenyMinors tinyint not null default 0;
|
alter table estate_settings add column DenyMinors tinyint not null default 0;
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
||||||
|
:VERSION 9
|
||||||
|
|
||||||
|
begin;
|
||||||
|
alter table estate_settings add column AllowLandmark tinyint not null default '1';
|
||||||
|
alter table estate_settings add column AllowParcelChanges tinyint not null default '1';
|
||||||
|
alter table estate_settings add column AllowSetHome tinyint not null default '1';
|
||||||
|
commit;
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,30 @@ namespace OpenSim.Framework
|
||||||
set { m_EstateName = value; }
|
set { m_EstateName = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool m_AllowLandmark = true;
|
||||||
|
|
||||||
|
public bool AllowLandmark
|
||||||
|
{
|
||||||
|
get { return m_AllowLandmark; }
|
||||||
|
set { m_AllowLandmark = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool m_AllowParcelChanges = true;
|
||||||
|
|
||||||
|
public bool AllowParcelChanges
|
||||||
|
{
|
||||||
|
get { return m_AllowParcelChanges; }
|
||||||
|
set { m_AllowParcelChanges = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool m_AllowSetHome = true;
|
||||||
|
|
||||||
|
public bool AllowSetHome
|
||||||
|
{
|
||||||
|
get { return m_AllowSetHome; }
|
||||||
|
set { m_AllowSetHome = value; }
|
||||||
|
}
|
||||||
|
|
||||||
private uint m_ParentEstateID = 1;
|
private uint m_ParentEstateID = 1;
|
||||||
|
|
||||||
public uint ParentEstateID
|
public uint ParentEstateID
|
||||||
|
@ -374,10 +398,18 @@ namespace OpenSim.Framework
|
||||||
return l_EstateAccess.Contains(user);
|
return l_EstateAccess.Contains(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetFromFlags(ulong regionFlags)
|
||||||
|
{
|
||||||
|
ResetHomeOnTeleport = ((regionFlags & (ulong)OpenMetaverse.RegionFlags.ResetHomeOnTeleport) == (ulong)OpenMetaverse.RegionFlags.ResetHomeOnTeleport);
|
||||||
|
BlockDwell = ((regionFlags & (ulong)OpenMetaverse.RegionFlags.BlockDwell) == (ulong)OpenMetaverse.RegionFlags.BlockDwell);
|
||||||
|
AllowLandmark = ((regionFlags & (ulong)OpenMetaverse.RegionFlags.AllowLandmark) == (ulong)OpenMetaverse.RegionFlags.AllowLandmark);
|
||||||
|
AllowParcelChanges = ((regionFlags & (ulong)OpenMetaverse.RegionFlags.AllowParcelChanges) == (ulong)OpenMetaverse.RegionFlags.AllowParcelChanges);
|
||||||
|
AllowSetHome = ((regionFlags & (ulong)OpenMetaverse.RegionFlags.AllowSetHome) == (ulong)OpenMetaverse.RegionFlags.AllowSetHome);
|
||||||
|
}
|
||||||
|
|
||||||
public bool GroupAccess(UUID groupID)
|
public bool GroupAccess(UUID groupID)
|
||||||
{
|
{
|
||||||
return l_EstateGroups.Contains(groupID);
|
return l_EstateGroups.Contains(groupID);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1245,6 +1245,8 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
flags |= RegionFlags.NoFly;
|
flags |= RegionFlags.NoFly;
|
||||||
if (Scene.RegionInfo.RegionSettings.RestrictPushing)
|
if (Scene.RegionInfo.RegionSettings.RestrictPushing)
|
||||||
flags |= RegionFlags.RestrictPushObject;
|
flags |= RegionFlags.RestrictPushObject;
|
||||||
|
if (Scene.RegionInfo.RegionSettings.AllowLandJoinDivide)
|
||||||
|
flags |= RegionFlags.AllowParcelChanges;
|
||||||
if (Scene.RegionInfo.RegionSettings.BlockShowInSearch)
|
if (Scene.RegionInfo.RegionSettings.BlockShowInSearch)
|
||||||
flags |= RegionFlags.BlockParcelSearch;
|
flags |= RegionFlags.BlockParcelSearch;
|
||||||
|
|
||||||
|
@ -1254,6 +1256,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
flags |= RegionFlags.Sandbox;
|
flags |= RegionFlags.Sandbox;
|
||||||
if (Scene.RegionInfo.EstateSettings.AllowVoice)
|
if (Scene.RegionInfo.EstateSettings.AllowVoice)
|
||||||
flags |= RegionFlags.AllowVoice;
|
flags |= RegionFlags.AllowVoice;
|
||||||
|
if (Scene.RegionInfo.EstateSettings.AllowLandmark)
|
||||||
|
flags |= RegionFlags.AllowLandmark;
|
||||||
|
if (Scene.RegionInfo.EstateSettings.AllowSetHome)
|
||||||
|
flags |= RegionFlags.AllowSetHome;
|
||||||
if (Scene.RegionInfo.EstateSettings.BlockDwell)
|
if (Scene.RegionInfo.EstateSettings.BlockDwell)
|
||||||
flags |= RegionFlags.BlockDwell;
|
flags |= RegionFlags.BlockDwell;
|
||||||
if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
|
if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
|
||||||
|
@ -1299,6 +1305,12 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
flags |= RegionFlags.ResetHomeOnTeleport;
|
flags |= RegionFlags.ResetHomeOnTeleport;
|
||||||
if (Scene.RegionInfo.EstateSettings.TaxFree)
|
if (Scene.RegionInfo.EstateSettings.TaxFree)
|
||||||
flags |= RegionFlags.TaxFree;
|
flags |= RegionFlags.TaxFree;
|
||||||
|
if (Scene.RegionInfo.EstateSettings.AllowLandmark)
|
||||||
|
flags |= RegionFlags.AllowLandmark;
|
||||||
|
if (Scene.RegionInfo.EstateSettings.AllowParcelChanges)
|
||||||
|
flags |= RegionFlags.AllowParcelChanges;
|
||||||
|
if (Scene.RegionInfo.EstateSettings.AllowSetHome)
|
||||||
|
flags |= RegionFlags.AllowSetHome;
|
||||||
if (Scene.RegionInfo.EstateSettings.DenyMinors)
|
if (Scene.RegionInfo.EstateSettings.DenyMinors)
|
||||||
flags |= (RegionFlags)(1 << 30);
|
flags |= (RegionFlags)(1 << 30);
|
||||||
|
|
||||||
|
|
|
@ -4188,8 +4188,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName);
|
"[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName);
|
||||||
|
|
||||||
// XPTO: if this agent is not allowed here as root, always return false
|
|
||||||
|
|
||||||
// TODO: This check should probably be in QueryAccess().
|
// TODO: This check should probably be in QueryAccess().
|
||||||
ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2);
|
ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2);
|
||||||
if (nearestParcel == null)
|
if (nearestParcel == null)
|
||||||
|
|
Loading…
Reference in New Issue