osSetParcelDetails: allow parcel group to be cleared also

0.9.0-post-fixes
UbitUmarov 2017-07-12 01:52:01 +01:00
parent c8a9b0321f
commit 3847f861e3
1 changed files with 15 additions and 7 deletions

View File

@ -1665,6 +1665,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (UUID.TryParse(arg, out uuid))
{
if(newLand.GroupID != uuid)
{
if(uuid == UUID.Zero)
{
changed = true;
newLand.GroupID = uuid;
}
else
{
IGroupsModule groupsModule = m_ScriptEngine.World.RequestModuleInterface<IGroupsModule>();
GroupMembershipData member = null;
@ -1680,6 +1687,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
}
}
}
else
{
OSSLError("script owner does not have permission to modify the parcel group");