From 6551f17966975081ac9b9f4c3b19d33e9d2c69a5 Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 7 May 2008 17:33:57 +0000 Subject: *Added SceneExternalChecks.cs that is used to manage checking the results of multiple functions that register with the class and return the result (usually true/false) based on those results. This is useful for module wanting to put their opinion in decisions such as 'can the user rez this object?' --- OpenSim/Region/Environment/Scenes/Scene.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a875051..72512c7 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -241,6 +241,7 @@ namespace OpenSim.Region.Environment.Scenes m_seeIntoRegionFromNeighbor = SeeIntoRegionFromNeighbor; m_eventManager = new EventManager(); + m_externalChecks = new SceneExternalChecks(this); //Bind Storage Manager functions to some land manager functions for this scene EventManager.OnLandObjectAdded += @@ -829,7 +830,7 @@ namespace OpenSim.Region.Environment.Scenes { ForEachScenePresence(delegate(ScenePresence presence) { whatToDo(presence.ControllingClient); }); } - + /// /// /// @@ -1244,7 +1245,7 @@ namespace OpenSim.Region.Environment.Scenes LLVector3 pos = GetNewRezLocation(RayStart, RayEnd, RayTargetID, rot, bypassRaycast, RayEndIsIntersection, true, new LLVector3(0.5f,0.5f,0.5f), false); - if (Permissions.CanRezObject(ownerID, pos)) + if (Permissions.CanRezObject(ownerID, pos, 1)) { // rez ON the ground, not IN the ground pos.Z += 0.25F; @@ -3217,5 +3218,7 @@ namespace OpenSim.Region.Environment.Scenes return visualParams; } #endregion + + } } -- cgit v1.1