mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
add cosmetics on AgentTransactionModule
This commit is contained in:
@@ -35,6 +35,7 @@ using OpenSim.Framework;
|
|||||||
using OpenSim.Region.Framework.Interfaces;
|
using OpenSim.Region.Framework.Interfaces;
|
||||||
using OpenSim.Region.Framework.Scenes;
|
using OpenSim.Region.Framework.Scenes;
|
||||||
using Mono.Addins;
|
using Mono.Addins;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||||
{
|
{
|
||||||
@@ -109,16 +110,11 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
|||||||
{
|
{
|
||||||
lock (AgentTransactions)
|
lock (AgentTransactions)
|
||||||
{
|
{
|
||||||
if (!AgentTransactions.ContainsKey(userID))
|
ref AgentAssetTransactions value = ref CollectionsMarshal.GetValueRefOrAddDefault(AgentTransactions, userID, out bool exists);
|
||||||
{
|
if (!exists)
|
||||||
AgentAssetTransactions transactions =
|
value = new AgentAssetTransactions(userID, m_Scene, m_dumpAssetsToFile);
|
||||||
new AgentAssetTransactions(userID, m_Scene,
|
|
||||||
m_dumpAssetsToFile);
|
|
||||||
|
|
||||||
AgentTransactions.Add(userID, transactions);
|
return value;
|
||||||
}
|
|
||||||
|
|
||||||
return AgentTransactions[userID];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,8 +209,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
|||||||
// "[ASSET TRANSACTION MODULE]: Called HandleTaskItemUpdateFromTransaction with item {0} in {1} for {2} in {3}",
|
// "[ASSET TRANSACTION MODULE]: Called HandleTaskItemUpdateFromTransaction with item {0} in {1} for {2} in {3}",
|
||||||
// item.Name, part.Name, remoteClient.Name, m_Scene.RegionInfo.RegionName);
|
// item.Name, part.Name, remoteClient.Name, m_Scene.RegionInfo.RegionName);
|
||||||
|
|
||||||
AgentAssetTransactions transactions =
|
AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
|
||||||
GetUserTransactions(remoteClient.AgentId);
|
|
||||||
|
|
||||||
transactions.RequestUpdateTaskInventoryItem(remoteClient, part,
|
transactions.RequestUpdateTaskInventoryItem(remoteClient, part,
|
||||||
transactionID, item);
|
transactionID, item);
|
||||||
@@ -243,9 +238,8 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
|||||||
(AssetType)type == AssetType.Animation) &&
|
(AssetType)type == AssetType.Animation) &&
|
||||||
tempFile == false)
|
tempFile == false)
|
||||||
{
|
{
|
||||||
ScenePresence avatar = null;
|
|
||||||
Scene scene = (Scene)remoteClient.Scene;
|
Scene scene = (Scene)remoteClient.Scene;
|
||||||
scene.TryGetScenePresence(remoteClient.AgentId, out avatar);
|
scene.TryGetScenePresence(remoteClient.AgentId, out ScenePresence avatar);
|
||||||
|
|
||||||
// check user level
|
// check user level
|
||||||
if (avatar != null)
|
if (avatar != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user