aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorMelanie2011-10-12 00:10:15 +0200
committerMelanie2011-10-12 00:10:15 +0200
commit1c2b5d99c9601a3d301f4bc0f53389cca831ee04 (patch)
tree97fa9c758f429d5dee64234e442f2c83cd1b9994 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentMerge branch 'careminster-presence-refactor' into bigmerge (diff)
parentMerge commit '92c88121c72386f85472c6cf4891eca8b62b9867' into bigmerge (diff)
downloadopensim-SC_OLD-1c2b5d99c9601a3d301f4bc0f53389cca831ee04.zip
opensim-SC_OLD-1c2b5d99c9601a3d301f4bc0f53389cca831ee04.tar.gz
opensim-SC_OLD-1c2b5d99c9601a3d301f4bc0f53389cca831ee04.tar.bz2
opensim-SC_OLD-1c2b5d99c9601a3d301f4bc0f53389cca831ee04.tar.xz
Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs25
1 files changed, 14 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index c2ec5d0..53f0f2e 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -261,7 +261,7 @@ namespace OpenSim.Region.Framework.Scenes
261 item.AssetID = asset.FullID; 261 item.AssetID = asset.FullID;
262 group.UpdateInventoryItem(item); 262 group.UpdateInventoryItem(item);
263 263
264 part.GetProperties(remoteClient); 264 part.SendPropertiesToClient(remoteClient);
265 265
266 // Trigger rerunning of script (use TriggerRezScript event, see RezScript) 266 // Trigger rerunning of script (use TriggerRezScript event, see RezScript)
267 ArrayList errors = new ArrayList(); 267 ArrayList errors = new ArrayList();
@@ -316,6 +316,10 @@ namespace OpenSim.Region.Framework.Scenes
316 public void UpdateInventoryItemAsset(IClientAPI remoteClient, UUID transactionID, 316 public void UpdateInventoryItemAsset(IClientAPI remoteClient, UUID transactionID,
317 UUID itemID, InventoryItemBase itemUpd) 317 UUID itemID, InventoryItemBase itemUpd)
318 { 318 {
319// m_log.DebugFormat(
320// "[USER INVENTORY]: Updating asset for item {0} {1}, transaction ID {2} for {3}",
321// itemID, itemUpd.Name, transactionID, remoteClient.Name);
322
319 // This one will let people set next perms on items in agent 323 // This one will let people set next perms on items in agent
320 // inventory. Rut-Roh. Whatever. Make this secure. Yeah. 324 // inventory. Rut-Roh. Whatever. Make this secure. Yeah.
321 // 325 //
@@ -368,8 +372,7 @@ namespace OpenSim.Region.Framework.Scenes
368 IAgentAssetTransactions agentTransactions = this.RequestModuleInterface<IAgentAssetTransactions>(); 372 IAgentAssetTransactions agentTransactions = this.RequestModuleInterface<IAgentAssetTransactions>();
369 if (agentTransactions != null) 373 if (agentTransactions != null)
370 { 374 {
371 agentTransactions.HandleItemUpdateFromTransaction( 375 agentTransactions.HandleItemUpdateFromTransaction(remoteClient, transactionID, item);
372 remoteClient, transactionID, item);
373 } 376 }
374 } 377 }
375 } 378 }
@@ -1005,7 +1008,7 @@ namespace OpenSim.Region.Framework.Scenes
1005 } 1008 }
1006 1009
1007 group.RemoveInventoryItem(localID, itemID); 1010 group.RemoveInventoryItem(localID, itemID);
1008 part.GetProperties(remoteClient); 1011 part.SendPropertiesToClient(remoteClient);
1009 } 1012 }
1010 } 1013 }
1011 1014
@@ -1283,7 +1286,7 @@ namespace OpenSim.Region.Framework.Scenes
1283 1286
1284 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar)) 1287 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar))
1285 { 1288 {
1286 destPart.GetProperties(avatar.ControllingClient); 1289 destPart.SendPropertiesToClient(avatar.ControllingClient);
1287 } 1290 }
1288 } 1291 }
1289 1292
@@ -1446,7 +1449,7 @@ namespace OpenSim.Region.Framework.Scenes
1446 m_log.InfoFormat( 1449 m_log.InfoFormat(
1447 "[PRIM INVENTORY]: Update with item {0} requested of prim {1} for {2}", 1450 "[PRIM INVENTORY]: Update with item {0} requested of prim {1} for {2}",
1448 item.Name, primLocalID, remoteClient.Name); 1451 item.Name, primLocalID, remoteClient.Name);
1449 part.GetProperties(remoteClient); 1452 part.SendPropertiesToClient(remoteClient);
1450 if (!Permissions.BypassPermissions()) 1453 if (!Permissions.BypassPermissions())
1451 { 1454 {
1452 if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) 1455 if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0)
@@ -1534,7 +1537,7 @@ namespace OpenSim.Region.Framework.Scenes
1534 1537
1535 if (part.Inventory.UpdateInventoryItem(itemInfo)) 1538 if (part.Inventory.UpdateInventoryItem(itemInfo))
1536 { 1539 {
1537 part.GetProperties(remoteClient); 1540 part.SendPropertiesToClient(remoteClient);
1538 } 1541 }
1539 } 1542 }
1540 } 1543 }
@@ -1586,7 +1589,7 @@ namespace OpenSim.Region.Framework.Scenes
1586 // m_log.InfoFormat("[PRIMINVENTORY]: " + 1589 // m_log.InfoFormat("[PRIMINVENTORY]: " +
1587 // "Rezzed script {0} into prim local ID {1} for user {2}", 1590 // "Rezzed script {0} into prim local ID {1} for user {2}",
1588 // item.inventoryName, localID, remoteClient.Name); 1591 // item.inventoryName, localID, remoteClient.Name);
1589 part.GetProperties(remoteClient); 1592 part.SendPropertiesToClient(remoteClient);
1590 part.ParentGroup.ResumeScripts(); 1593 part.ParentGroup.ResumeScripts();
1591 } 1594 }
1592 else 1595 else
@@ -1644,7 +1647,7 @@ namespace OpenSim.Region.Framework.Scenes
1644 taskItem.AssetID = asset.FullID; 1647 taskItem.AssetID = asset.FullID;
1645 1648
1646 part.Inventory.AddInventoryItem(taskItem, false); 1649 part.Inventory.AddInventoryItem(taskItem, false);
1647 part.GetProperties(remoteClient); 1650 part.SendPropertiesToClient(remoteClient);
1648 1651
1649 part.Inventory.CreateScriptInstance(taskItem, 0, false, DefaultScriptEngine, 0); 1652 part.Inventory.CreateScriptInstance(taskItem, 0, false, DefaultScriptEngine, 0);
1650 part.ParentGroup.ResumeScripts(); 1653 part.ParentGroup.ResumeScripts();
@@ -1758,7 +1761,7 @@ namespace OpenSim.Region.Framework.Scenes
1758 1761
1759 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar)) 1762 if (TryGetScenePresence(srcTaskItem.OwnerID, out avatar))
1760 { 1763 {
1761 destPart.GetProperties(avatar.ControllingClient); 1764 destPart.SendPropertiesToClient(avatar.ControllingClient);
1762 } 1765 }
1763 } 1766 }
1764 1767
@@ -2217,7 +2220,7 @@ namespace OpenSim.Region.Framework.Scenes
2217 SceneObjectPart part = GetSceneObjectPart(localID); 2220 SceneObjectPart part = GetSceneObjectPart(localID);
2218 if (part == null) 2221 if (part == null)
2219 continue; 2222 continue;
2220 part.GetProperties(remoteClient); 2223 part.SendPropertiesToClient(remoteClient);
2221 } 2224 }
2222 } 2225 }
2223 2226