aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs23
1 files changed, 6 insertions, 17 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 2cf0ced..321d0aa 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -949,23 +949,12 @@ namespace OpenSim.Region.Framework.Scenes
949 /// <param name="primLocalID"></param> 949 /// <param name="primLocalID"></param>
950 public void RequestTaskInventory(IClientAPI remoteClient, uint primLocalID) 950 public void RequestTaskInventory(IClientAPI remoteClient, uint primLocalID)
951 { 951 {
952 SceneObjectGroup group = GetGroupByPrim(primLocalID); 952 SceneObjectPart part = GetSceneObjectPart(primLocalID);
953 if (group != null) 953 if (part == null)
954 { 954 return;
955 bool fileChange = group.GetPartInventoryFileName(remoteClient, primLocalID); 955
956 if (fileChange) 956 if (XferManager != null)
957 { 957 part.Inventory.RequestInventoryFile(remoteClient, XferManager);
958 if (XferManager != null)
959 {
960 group.RequestInventoryFile(remoteClient, primLocalID, XferManager);
961 }
962 }
963 }
964 else
965 {
966 m_log.ErrorFormat(
967 "[PRIM INVENTORY]: Inventory requested of prim {0} which doesn't exist", primLocalID);
968 }
969 } 958 }
970 959
971 /// <summary> 960 /// <summary>