aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorMW2008-02-16 13:01:42 +0000
committerMW2008-02-16 13:01:42 +0000
commitb618802e533ce2922e1e1a2f5d2b35b891e9ae88 (patch)
tree0a315205fd0ac0061a7d4b3aa92da9c2c06fcdb7 /OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
parentSome changes to remove some of the direct calls to CommsManager from Scene, s... (diff)
downloadopensim-SC_OLD-b618802e533ce2922e1e1a2f5d2b35b891e9ae88.zip
opensim-SC_OLD-b618802e533ce2922e1e1a2f5d2b35b891e9ae88.tar.gz
opensim-SC_OLD-b618802e533ce2922e1e1a2f5d2b35b891e9ae88.tar.bz2
opensim-SC_OLD-b618802e533ce2922e1e1a2f5d2b35b891e9ae88.tar.xz
Moved the AgentAssetTransactionsManager (and AgentAssetTransactions) out of CommsManager and into a module (AgentAgentTransactionModule), still needs cleaning up though.
But its one more thing out of the CommsManager. One day we will kill the CommsManager!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs19
1 files changed, 15 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 952b039..2212216 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -36,6 +36,7 @@ using OpenSim.Framework.Console;
36using System.IO; 36using System.IO;
37using System.Text; 37using System.Text;
38using System.Xml; 38using System.Xml;
39using OpenSim.Region.Environment.Interfaces;
39 40
40 41
41namespace OpenSim.Region.Environment.Scenes 42namespace OpenSim.Region.Environment.Scenes
@@ -266,8 +267,12 @@ namespace OpenSim.Region.Environment.Scenes
266 } 267 }
267 else 268 else
268 { 269 {
269 CommsManager.TransactionsManager.HandleItemUpdateFromTransaction( 270 IAgentAssetTransactions agentTransactions = this.RequestModuleInterface<IAgentAssetTransactions>();
270 remoteClient, transactionID, item); 271 if (agentTransactions != null)
272 {
273 agentTransactions.HandleItemUpdateFromTransaction(
274 remoteClient, transactionID, item);
275 }
271 } 276 }
272 } 277 }
273 else 278 else
@@ -459,9 +464,15 @@ namespace OpenSim.Region.Environment.Scenes
459 } 464 }
460 else 465 else
461 { 466 {
462 CommsManager.TransactionsManager.HandleItemCreationFromTransaction( 467 IAgentAssetTransactions agentTransactions = this.RequestModuleInterface<IAgentAssetTransactions>();
468 if (agentTransactions != null)
469 {
470 agentTransactions.HandleItemCreationFromTransaction(
463 remoteClient, transactionID, folderID, callbackID, description, 471 remoteClient, transactionID, folderID, callbackID, description,
464 name, invType, assetType, wearableType, nextOwnerMask); 472 name, invType, assetType, wearableType, nextOwnerMask);
473 }
474
475
465 } 476 }
466 } 477 }
467 478