osSetParcelDetails: allow parcel group to be cleared also
parent
c8a9b0321f
commit
3847f861e3
|
@ -1666,17 +1666,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
if(newLand.GroupID != uuid)
|
||||
{
|
||||
IGroupsModule groupsModule = m_ScriptEngine.World.RequestModuleInterface<IGroupsModule>();
|
||||
GroupMembershipData member = null;
|
||||
if (groupsModule != null)
|
||||
member = groupsModule.GetMembershipData(uuid, newLand.OwnerID);
|
||||
if (member == null)
|
||||
OSSLError(string.Format("land owner is not member of the new group for parcel"));
|
||||
else
|
||||
if(uuid == UUID.Zero)
|
||||
{
|
||||
changed = true;
|
||||
newLand.GroupID = uuid;
|
||||
}
|
||||
else
|
||||
{
|
||||
IGroupsModule groupsModule = m_ScriptEngine.World.RequestModuleInterface<IGroupsModule>();
|
||||
GroupMembershipData member = null;
|
||||
if (groupsModule != null)
|
||||
member = groupsModule.GetMembershipData(uuid, newLand.OwnerID);
|
||||
if (member == null)
|
||||
OSSLError(string.Format("land owner is not member of the new group for parcel"));
|
||||
else
|
||||
{
|
||||
changed = true;
|
||||
newLand.GroupID = uuid;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue