osSetParcelDetails: allow parcel group to be cleared also
parent
c8a9b0321f
commit
3847f861e3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue