fix HandleRevokePermissions()

master
UbitUmarov 2020-02-20 08:29:09 +00:00
parent 7c977f9e27
commit 6c94f5d432
1 changed files with 4 additions and 2 deletions

View File

@ -5979,14 +5979,16 @@ namespace OpenSim.Region.Framework.Scenes
return; return;
if(objectID == m_scene.RegionInfo.RegionID) // for all objects if(objectID == m_scene.RegionInfo.RegionID) // for all objects
{ {
List<SceneObjectGroup> sogs = m_scene.GetSceneObjectGroups();
for(int i = 0; i < sogs.Count; ++i)
sogs[i].RemoveScriptsPermissions(this, (int)permissions);
} }
else else
{ {
SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); SceneObjectPart part = m_scene.GetSceneObjectPart(objectID);
if(part != null) if(part != null)
{ {
part.Inventory.RemoveScriptsPermissions(this, (int)permissions);
} }
} }
} }