aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorDan Lake2010-03-19 05:58:34 -0700
committerJohn Hurliman2010-03-19 15:16:44 -0700
commit62e0b53ca4697a852ee1e36e86da6a32e93bd55e (patch)
treeaacaa4c84a0b7e61784909ca76fb1528ca06938b /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentCleaned up access to scenepresences in scenegraph. GetScenePresences and GetA... (diff)
downloadopensim-SC-62e0b53ca4697a852ee1e36e86da6a32e93bd55e.zip
opensim-SC-62e0b53ca4697a852ee1e36e86da6a32e93bd55e.tar.gz
opensim-SC-62e0b53ca4697a852ee1e36e86da6a32e93bd55e.tar.bz2
opensim-SC-62e0b53ca4697a852ee1e36e86da6a32e93bd55e.tar.xz
Renamed TryGetAvatar to TryGetScenePresence on SceneManager, SceneBase, Scene and SceneGraph. This was the only change in this patch to keep it isolated from other recent changes to the same set of files.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 41533a1..32311d8 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Framework.Scenes
132 { 132 {
133 ScenePresence avatar; 133 ScenePresence avatar;
134 134
135 if (TryGetAvatar(avatarId, out avatar)) 135 if (TryGetScenePresence(avatarId, out avatar))
136 { 136 {
137 IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>(); 137 IInventoryAccessModule invAccess = RequestModuleInterface<IInventoryAccessModule>();
138 if (invAccess != null) 138 if (invAccess != null)
@@ -230,7 +230,7 @@ namespace OpenSim.Region.Framework.Scenes
230 { 230 {
231 ScenePresence avatar; 231 ScenePresence avatar;
232 232
233 if (TryGetAvatar(avatarId, out avatar)) 233 if (TryGetScenePresence(avatarId, out avatar))
234 { 234 {
235 return CapsUpdateTaskInventoryScriptAsset( 235 return CapsUpdateTaskInventoryScriptAsset(
236 avatar.ControllingClient, itemId, primId, isScriptRunning, data); 236 avatar.ControllingClient, itemId, primId, isScriptRunning, data);
@@ -683,7 +683,7 @@ namespace OpenSim.Region.Framework.Scenes
683 if (transactionID == UUID.Zero) 683 if (transactionID == UUID.Zero)
684 { 684 {
685 ScenePresence presence; 685 ScenePresence presence;
686 if (TryGetAvatar(remoteClient.AgentId, out presence)) 686 if (TryGetScenePresence(remoteClient.AgentId, out presence))
687 { 687 {
688 byte[] data = null; 688 byte[] data = null;
689 689
@@ -941,7 +941,7 @@ namespace OpenSim.Region.Framework.Scenes
941 { 941 {
942 ScenePresence avatar; 942 ScenePresence avatar;
943 943
944 if (TryGetAvatar(avatarId, out avatar)) 944 if (TryGetScenePresence(avatarId, out avatar))
945 { 945 {
946 return MoveTaskInventoryItem(avatar.ControllingClient, folderId, part, itemId); 946 return MoveTaskInventoryItem(avatar.ControllingClient, folderId, part, itemId);
947 } 947 }
@@ -1055,7 +1055,7 @@ namespace OpenSim.Region.Framework.Scenes
1055 1055
1056 ScenePresence avatar; 1056 ScenePresence avatar;
1057 1057
1058 if (TryGetAvatar(srcTaskItem.OwnerID, out avatar)) 1058 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar))
1059 { 1059 {
1060 destPart.GetProperties(avatar.ControllingClient); 1060 destPart.GetProperties(avatar.ControllingClient);
1061 } 1061 }
@@ -1083,7 +1083,7 @@ namespace OpenSim.Region.Framework.Scenes
1083 } 1083 }
1084 1084
1085 ScenePresence avatar = null; 1085 ScenePresence avatar = null;
1086 if (TryGetAvatar(destID, out avatar)) 1086 if (TryGetScenePresence(destID, out avatar))
1087 { 1087 {
1088 //profile.SendInventoryDecendents(avatar.ControllingClient, 1088 //profile.SendInventoryDecendents(avatar.ControllingClient,
1089 // profile.RootFolder.ID, true, false); 1089 // profile.RootFolder.ID, true, false);
@@ -1420,7 +1420,7 @@ namespace OpenSim.Region.Framework.Scenes
1420 1420
1421 ScenePresence avatar; 1421 ScenePresence avatar;
1422 1422
1423 if (TryGetAvatar(srcTaskItem.OwnerID, out avatar)) 1423 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar))
1424 { 1424 {
1425 destPart.GetProperties(avatar.ControllingClient); 1425 destPart.GetProperties(avatar.ControllingClient);
1426 } 1426 }
@@ -1860,7 +1860,7 @@ namespace OpenSim.Region.Framework.Scenes
1860 UUID inventoryID = part.ParentGroup.GetFromItemID(); 1860 UUID inventoryID = part.ParentGroup.GetFromItemID();
1861 1861
1862 ScenePresence presence; 1862 ScenePresence presence;
1863 if (TryGetAvatar(remoteClient.AgentId, out presence)) 1863 if (TryGetScenePresence(remoteClient.AgentId, out presence))
1864 { 1864 {
1865 if (!Permissions.CanRezObject(part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition)) 1865 if (!Permissions.CanRezObject(part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition))
1866 return; 1866 return;