diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | 6 | ||||
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs index 9845418..6925b6c 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
52 | public delegate bool EditObjectHandler(SceneObjectGroup sog, ScenePresence sp); | 52 | public delegate bool EditObjectHandler(SceneObjectGroup sog, ScenePresence sp); |
53 | public delegate bool EditObjectInventoryHandler(UUID objectID, UUID editorID, Scene scene); | 53 | public delegate bool EditObjectInventoryHandler(UUID objectID, UUID editorID, Scene scene); |
54 | public delegate bool MoveObjectHandler(SceneObjectGroup sog, ScenePresence sp); | 54 | public delegate bool MoveObjectHandler(SceneObjectGroup sog, ScenePresence sp); |
55 | public delegate bool ObjectEntryHandler(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene); | 55 | public delegate bool ObjectEntryHandler(SceneObjectGroup sog, bool enteringRegion, Vector3 newPoint, Scene scene); |
56 | public delegate bool ReturnObjectsHandler(ILandObject land, UUID user, List<SceneObjectGroup> objects, Scene scene); | 56 | public delegate bool ReturnObjectsHandler(ILandObject land, UUID user, List<SceneObjectGroup> objects, Scene scene); |
57 | public delegate bool InstantMessageHandler(UUID user, UUID target, Scene startScene); | 57 | public delegate bool InstantMessageHandler(UUID user, UUID target, Scene startScene); |
58 | public delegate bool InventoryTransferHandler(UUID user, UUID target, Scene startScene); | 58 | public delegate bool InventoryTransferHandler(UUID user, UUID target, Scene startScene); |
@@ -504,7 +504,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
504 | #endregion | 504 | #endregion |
505 | 505 | ||
506 | #region OBJECT ENTRY | 506 | #region OBJECT ENTRY |
507 | public bool CanObjectEntry(UUID objectID, bool enteringRegion, Vector3 newPoint) | 507 | public bool CanObjectEntry(SceneObjectGroup sog, bool enteringRegion, Vector3 newPoint) |
508 | { | 508 | { |
509 | ObjectEntryHandler handler = OnObjectEntry; | 509 | ObjectEntryHandler handler = OnObjectEntry; |
510 | if (handler != null) | 510 | if (handler != null) |
@@ -512,7 +512,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
512 | Delegate[] list = handler.GetInvocationList(); | 512 | Delegate[] list = handler.GetInvocationList(); |
513 | foreach (ObjectEntryHandler h in list) | 513 | foreach (ObjectEntryHandler h in list) |
514 | { | 514 | { |
515 | if (h(objectID, enteringRegion, newPoint, m_scene) == false) | 515 | if (h(sog, enteringRegion, newPoint, m_scene) == false) |
516 | return false; | 516 | return false; |
517 | } | 517 | } |
518 | } | 518 | } |
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 9264138..8fc438d 100755 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -1579,7 +1579,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1579 | else | 1579 | else |
1580 | { | 1580 | { |
1581 | if (m_parentScene.Permissions.CanMoveObject(group, remoteClient) | 1581 | if (m_parentScene.Permissions.CanMoveObject(group, remoteClient) |
1582 | && m_parentScene.Permissions.CanObjectEntry(group.UUID, false, pos)) | 1582 | && m_parentScene.Permissions.CanObjectEntry(group, false, pos)) |
1583 | { | 1583 | { |
1584 | group.UpdateGroupPosition(pos); | 1584 | group.UpdateGroupPosition(pos); |
1585 | } | 1585 | } |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index d14c450..83c5db4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -4656,7 +4656,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4656 | } | 4656 | } |
4657 | if ((change & ObjectChangeType.Position) != 0) | 4657 | if ((change & ObjectChangeType.Position) != 0) |
4658 | { | 4658 | { |
4659 | if (IsAttachment || m_scene.Permissions.CanObjectEntry(group.UUID, false, data.position)) | 4659 | if (IsAttachment || m_scene.Permissions.CanObjectEntry(group, false, data.position)) |
4660 | UpdateGroupPosition(data.position); | 4660 | UpdateGroupPosition(data.position); |
4661 | updateType = updatetype.groupterse; | 4661 | updateType = updatetype.groupterse; |
4662 | } | 4662 | } |