Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
653d97b739
|
@ -1158,6 +1158,7 @@ namespace OpenSim.Framework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="Item"></param>
|
/// <param name="Item"></param>
|
||||||
void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId);
|
void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId);
|
||||||
|
void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId);
|
||||||
|
|
||||||
void SendRemoveInventoryItem(UUID itemID);
|
void SendRemoveInventoryItem(UUID itemID);
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ using log4net;
|
||||||
using HttpServer;
|
using HttpServer;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
using OpenSim.Framework.Monitoring;
|
using OpenSim.Framework.Monitoring;
|
||||||
|
using Amib.Threading;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -185,6 +186,8 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
private bool m_running = true;
|
private bool m_running = true;
|
||||||
private int slowCount = 0;
|
private int slowCount = 0;
|
||||||
|
|
||||||
|
private SmartThreadPool m_threadPool = new SmartThreadPool(20000, 12, 2);
|
||||||
|
|
||||||
// private int m_timeout = 1000; // increase timeout 250; now use the event one
|
// private int m_timeout = 1000; // increase timeout 250; now use the event one
|
||||||
|
|
||||||
public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout)
|
public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout)
|
||||||
|
@ -353,17 +356,45 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
// "Normal" means the viewer evebt queue. We need to push these out fast.
|
||||||
|
// Process them inline. The rest go to the thread pool.
|
||||||
|
if (req.PollServiceArgs.Type == PollServiceEventArgs.EventType.Normal)
|
||||||
{
|
{
|
||||||
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, str.ReadToEnd());
|
try
|
||||||
DoHTTPGruntWork(m_server, req, responsedata);
|
{
|
||||||
|
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, str.ReadToEnd());
|
||||||
|
DoHTTPGruntWork(m_server, req, responsedata);
|
||||||
|
}
|
||||||
|
catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream
|
||||||
|
{
|
||||||
|
// Ignore it, no need to reply
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
str.Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream
|
else
|
||||||
{
|
{
|
||||||
// Ignore it, no need to reply
|
m_threadPool.QueueWorkItem(x =>
|
||||||
}
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, str.ReadToEnd());
|
||||||
|
DoHTTPGruntWork(m_server, req, responsedata);
|
||||||
|
}
|
||||||
|
catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream
|
||||||
|
{
|
||||||
|
// Ignore it, no need to reply
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
str.Close();
|
||||||
|
}
|
||||||
|
|
||||||
str.Close();
|
return null;
|
||||||
|
}, null);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -35,10 +35,13 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
// fees are normalized to 1.0
|
// fees are normalized to 1.0
|
||||||
// this parameters scale them to basic cost ( so 1.0 translates to 10 )
|
// this parameters scale them to basic cost ( so 1.0 translates to 10 )
|
||||||
|
|
||||||
public float ModelMeshCostFactor = 1.0f; // scale total cost relative to basic (excluding textures)
|
public float ModelMeshCostFactor = 0f; //Free
|
||||||
public float ModelTextureCostFactor = 1.0f; // scale textures fee to basic.
|
public float ModelMinCostFactor = 0f; // Free
|
||||||
public float ModelMinCostFactor = 0.5f; // minimum total model free excluding textures
|
//public float ModelMeshCostFactor = 1.0f; // scale total cost relative to basic (excluding textures)
|
||||||
|
//public float ModelMinCostFactor = 0.5f; // minimum total model free excluding textures
|
||||||
|
|
||||||
|
public float ModelTextureCostFactor = 1.00f; // keep full price because texture price
|
||||||
|
// is based on it's storage needs not on usability
|
||||||
// itens costs in normalized values
|
// itens costs in normalized values
|
||||||
// ie will be multiplied by basicCost and factors above
|
// ie will be multiplied by basicCost and factors above
|
||||||
const float primCreationCost = 0.002f; // extra cost for each prim creation overhead
|
const float primCreationCost = 0.002f; // extra cost for each prim creation overhead
|
||||||
|
|
|
@ -146,14 +146,14 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
{
|
{
|
||||||
m_scene = scene;
|
m_scene = scene;
|
||||||
|
|
||||||
HasEvents = (x, y) => { return this.responses.ContainsKey(x); };
|
HasEvents = (x, y) => { lock (responses) return responses.ContainsKey(x); };
|
||||||
GetEvents = (x, y, s) =>
|
GetEvents = (x, y, s) =>
|
||||||
{
|
{
|
||||||
lock (responses)
|
lock (responses)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return this.responses[x];
|
return responses[x];
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -165,15 +165,15 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
Request = (x, y) =>
|
Request = (x, y) =>
|
||||||
{
|
{
|
||||||
y["RequestID"] = x.ToString();
|
y["RequestID"] = x.ToString();
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
this.requests.Add(y);
|
requests.Add(y);
|
||||||
|
|
||||||
m_queue.Enqueue(this);
|
m_queue.Enqueue(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
NoEvents = (x, y) =>
|
NoEvents = (x, y) =>
|
||||||
{
|
{
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
{
|
{
|
||||||
Hashtable request = requests.Find(id => id["RequestID"].ToString() == x.ToString());
|
Hashtable request = requests.Find(id => id["RequestID"].ToString() == x.ToString());
|
||||||
requests.Remove(request);
|
requests.Remove(request);
|
||||||
|
@ -198,7 +198,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
{
|
{
|
||||||
request = requests[0];
|
request = requests[0];
|
||||||
requests.RemoveAt(0);
|
requests.RemoveAt(0);
|
||||||
|
@ -221,8 +221,10 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
response["content_type"] = "text/plain";
|
response["content_type"] = "text/plain";
|
||||||
response["keepalive"] = false;
|
response["keepalive"] = false;
|
||||||
response["reusecontext"] = false;
|
response["reusecontext"] = false;
|
||||||
|
|
||||||
lock (responses)
|
lock (responses)
|
||||||
responses[requestID] = response;
|
responses[requestID] = response;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -144,31 +144,34 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
public PollServiceInventoryEventArgs(UUID pId) :
|
public PollServiceInventoryEventArgs(UUID pId) :
|
||||||
base(null, null, null, null, pId, 30000)
|
base(null, null, null, null, pId, 30000)
|
||||||
{
|
{
|
||||||
HasEvents = (x, y) => { return this.responses.ContainsKey(x); };
|
HasEvents = (x, y) => { lock (responses) return responses.ContainsKey(x); };
|
||||||
GetEvents = (x, y, s) =>
|
GetEvents = (x, y, s) =>
|
||||||
{
|
{
|
||||||
try
|
lock (responses)
|
||||||
{
|
{
|
||||||
return this.responses[x];
|
try
|
||||||
}
|
{
|
||||||
finally
|
return responses[x];
|
||||||
{
|
}
|
||||||
responses.Remove(x);
|
finally
|
||||||
|
{
|
||||||
|
responses.Remove(x);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Request = (x, y) =>
|
Request = (x, y) =>
|
||||||
{
|
{
|
||||||
y["RequestID"] = x.ToString();
|
y["RequestID"] = x.ToString();
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
this.requests.Add(y);
|
requests.Add(y);
|
||||||
|
|
||||||
m_queue.Enqueue(this);
|
m_queue.Enqueue(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
NoEvents = (x, y) =>
|
NoEvents = (x, y) =>
|
||||||
{
|
{
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
{
|
{
|
||||||
Hashtable request = requests.Find(id => id["RequestID"].ToString() == x.ToString());
|
Hashtable request = requests.Find(id => id["RequestID"].ToString() == x.ToString());
|
||||||
requests.Remove(request);
|
requests.Remove(request);
|
||||||
|
@ -192,7 +195,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (this.requests)
|
lock (requests)
|
||||||
{
|
{
|
||||||
request = requests[0];
|
request = requests[0];
|
||||||
requests.RemoveAt(0);
|
requests.RemoveAt(0);
|
||||||
|
@ -214,7 +217,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
response["str_response_string"] = m_webFetchHandler.FetchInventoryDescendentsRequest(request["body"].ToString(), String.Empty, String.Empty, null, null);
|
response["str_response_string"] = m_webFetchHandler.FetchInventoryDescendentsRequest(request["body"].ToString(), String.Empty, String.Empty, null, null);
|
||||||
|
|
||||||
responses[requestID] = response;
|
lock (responses)
|
||||||
|
responses[requestID] = response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2067,8 +2067,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
OutPacket(bulkUpdate, ThrottleOutPacketType.Asset);
|
OutPacket(bulkUpdate, ThrottleOutPacketType.Asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see>
|
|
||||||
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId)
|
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId)
|
||||||
|
{
|
||||||
|
SendInventoryItemCreateUpdate(Item, UUID.Zero, callbackId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see>
|
||||||
|
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
|
||||||
{
|
{
|
||||||
const uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
|
const uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
|
||||||
|
|
||||||
|
@ -2079,6 +2084,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
// TODO: don't create new blocks if recycling an old packet
|
// TODO: don't create new blocks if recycling an old packet
|
||||||
InventoryReply.AgentData.AgentID = AgentId;
|
InventoryReply.AgentData.AgentID = AgentId;
|
||||||
InventoryReply.AgentData.SimApproved = true;
|
InventoryReply.AgentData.SimApproved = true;
|
||||||
|
InventoryReply.AgentData.TransactionID = transactionID;
|
||||||
InventoryReply.InventoryData = new UpdateCreateInventoryItemPacket.InventoryDataBlock[1];
|
InventoryReply.InventoryData = new UpdateCreateInventoryItemPacket.InventoryDataBlock[1];
|
||||||
InventoryReply.InventoryData[0] = new UpdateCreateInventoryItemPacket.InventoryDataBlock();
|
InventoryReply.InventoryData[0] = new UpdateCreateInventoryItemPacket.InventoryDataBlock();
|
||||||
InventoryReply.InventoryData[0].ItemID = Item.ID;
|
InventoryReply.InventoryData[0].ItemID = Item.ID;
|
||||||
|
|
|
@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RequestCreateInventoryItem(IClientAPI remoteClient,
|
public bool RequestCreateInventoryItem(IClientAPI remoteClient,
|
||||||
UUID transactionID, UUID folderID, uint callbackID,
|
UUID transactionID, UUID folderID, uint callbackID,
|
||||||
string description, string name, sbyte invType,
|
string description, string name, sbyte invType,
|
||||||
sbyte type, byte wearableType, uint nextOwnerMask)
|
sbyte type, byte wearableType, uint nextOwnerMask)
|
||||||
|
@ -160,14 +160,16 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uploader != null)
|
if (uploader != null)
|
||||||
|
{
|
||||||
uploader.RequestCreateInventoryItem(
|
uploader.RequestCreateInventoryItem(
|
||||||
remoteClient, transactionID, folderID,
|
remoteClient, transactionID, folderID,
|
||||||
callbackID, description, name, invType, type,
|
callbackID, description, name, invType, type,
|
||||||
wearableType, nextOwnerMask);
|
wearableType, nextOwnerMask);
|
||||||
else
|
|
||||||
m_log.ErrorFormat(
|
return true;
|
||||||
"[AGENT ASSET TRANSACTIONS]: Could not find uploader with transaction ID {0} when handling request to create inventory item {1} from {2}",
|
}
|
||||||
transactionID, name, remoteClient.Name);
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -158,7 +158,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||||
/// <param name="type"></param>
|
/// <param name="type"></param>
|
||||||
/// <param name="wearableType"></param>
|
/// <param name="wearableType"></param>
|
||||||
/// <param name="nextOwnerMask"></param>
|
/// <param name="nextOwnerMask"></param>
|
||||||
public void HandleItemCreationFromTransaction(IClientAPI remoteClient,
|
public bool HandleItemCreationFromTransaction(IClientAPI remoteClient,
|
||||||
UUID transactionID, UUID folderID, uint callbackID,
|
UUID transactionID, UUID folderID, uint callbackID,
|
||||||
string description, string name, sbyte invType,
|
string description, string name, sbyte invType,
|
||||||
sbyte type, byte wearableType, uint nextOwnerMask)
|
sbyte type, byte wearableType, uint nextOwnerMask)
|
||||||
|
@ -169,7 +169,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||||
AgentAssetTransactions transactions =
|
AgentAssetTransactions transactions =
|
||||||
GetUserTransactions(remoteClient.AgentId);
|
GetUserTransactions(remoteClient.AgentId);
|
||||||
|
|
||||||
transactions.RequestCreateInventoryItem(remoteClient, transactionID,
|
return transactions.RequestCreateInventoryItem(remoteClient, transactionID,
|
||||||
folderID, callbackID, description, name, invType, type,
|
folderID, callbackID, description, name, invType, type,
|
||||||
wearableType, nextOwnerMask);
|
wearableType, nextOwnerMask);
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,45 +186,44 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
if (folder == null || folder.Owner != remoteClient.AgentId)
|
if (folder == null || folder.Owner != remoteClient.AgentId)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (transactionID == UUID.Zero)
|
if (transactionID != UUID.Zero)
|
||||||
{
|
|
||||||
ScenePresence presence;
|
|
||||||
if (m_Scene.TryGetScenePresence(remoteClient.AgentId, out presence))
|
|
||||||
{
|
|
||||||
byte[] data = null;
|
|
||||||
|
|
||||||
if (invType == (sbyte)InventoryType.Landmark && presence != null)
|
|
||||||
{
|
|
||||||
string suffix = string.Empty, prefix = string.Empty;
|
|
||||||
string strdata = GenerateLandmark(presence, out prefix, out suffix);
|
|
||||||
data = Encoding.ASCII.GetBytes(strdata);
|
|
||||||
name = prefix + name;
|
|
||||||
description += suffix;
|
|
||||||
}
|
|
||||||
|
|
||||||
AssetBase asset = m_Scene.CreateAsset(name, description, assetType, data, remoteClient.AgentId);
|
|
||||||
m_Scene.AssetService.Store(asset);
|
|
||||||
m_Scene.CreateNewInventoryItem(
|
|
||||||
remoteClient, remoteClient.AgentId.ToString(), string.Empty, folderID,
|
|
||||||
name, description, 0, callbackID, asset, invType, nextOwnerMask, creationDate);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_log.ErrorFormat(
|
|
||||||
"[INVENTORY ACCESS MODULE]: ScenePresence for agent uuid {0} unexpectedly not found in CreateNewInventoryItem",
|
|
||||||
remoteClient.AgentId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
IAgentAssetTransactions agentTransactions = m_Scene.AgentTransactionsModule;
|
IAgentAssetTransactions agentTransactions = m_Scene.AgentTransactionsModule;
|
||||||
if (agentTransactions != null)
|
if (agentTransactions != null)
|
||||||
{
|
{
|
||||||
agentTransactions.HandleItemCreationFromTransaction(
|
if (agentTransactions.HandleItemCreationFromTransaction(
|
||||||
remoteClient, transactionID, folderID, callbackID, description,
|
remoteClient, transactionID, folderID, callbackID, description,
|
||||||
name, invType, assetType, wearableType, nextOwnerMask);
|
name, invType, assetType, wearableType, nextOwnerMask))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScenePresence presence;
|
||||||
|
if (m_Scene.TryGetScenePresence(remoteClient.AgentId, out presence))
|
||||||
|
{
|
||||||
|
byte[] data = null;
|
||||||
|
|
||||||
|
if (invType == (sbyte)InventoryType.Landmark && presence != null)
|
||||||
|
{
|
||||||
|
string suffix = string.Empty, prefix = string.Empty;
|
||||||
|
string strdata = GenerateLandmark(presence, out prefix, out suffix);
|
||||||
|
data = Encoding.ASCII.GetBytes(strdata);
|
||||||
|
name = prefix + name;
|
||||||
|
description += suffix;
|
||||||
|
}
|
||||||
|
|
||||||
|
AssetBase asset = m_Scene.CreateAsset(name, description, assetType, data, remoteClient.AgentId);
|
||||||
|
m_Scene.AssetService.Store(asset);
|
||||||
|
m_Scene.CreateNewInventoryItem(
|
||||||
|
remoteClient, remoteClient.AgentId.ToString(), string.Empty, folderID,
|
||||||
|
name, description, 0, callbackID, asset, invType, nextOwnerMask, creationDate,transactionID);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.ErrorFormat(
|
||||||
|
"[INVENTORY ACCESS MODULE]: ScenePresence for agent uuid {0} unexpectedly not found in CreateNewInventoryItem",
|
||||||
|
remoteClient.AgentId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string GenerateLandmark(ScenePresence presence, out string prefix, out string suffix)
|
protected virtual string GenerateLandmark(ScenePresence presence, out string prefix, out string suffix)
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID,
|
void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID,
|
||||||
InventoryItemBase item);
|
InventoryItemBase item);
|
||||||
|
|
||||||
void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID,
|
bool HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID,
|
||||||
uint callbackID, string description, string name, sbyte invType,
|
uint callbackID, string description, string name, sbyte invType,
|
||||||
sbyte type, byte wearableType, uint nextOwnerMask);
|
sbyte type, byte wearableType, uint nextOwnerMask);
|
||||||
|
|
||||||
|
|
|
@ -904,11 +904,22 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public void CreateNewInventoryItem(
|
public void CreateNewInventoryItem(
|
||||||
IClientAPI remoteClient, string creatorID, string creatorData, UUID folderID,
|
IClientAPI remoteClient, string creatorID, string creatorData, UUID folderID,
|
||||||
string name, string description, uint flags, uint callbackID,
|
string name, string description, uint flags, uint callbackID,
|
||||||
AssetBase asset, sbyte invType, uint nextOwnerMask, int creationDate)
|
AssetBase asset, sbyte invType, uint nextOwnerMask, int creationDate, UUID transationID)
|
||||||
{
|
{
|
||||||
CreateNewInventoryItem(
|
CreateNewInventoryItem(
|
||||||
remoteClient, creatorID, creatorData, folderID, name, description, flags, callbackID, asset, invType,
|
remoteClient, creatorID, creatorData, folderID, name, description, flags, callbackID, asset, invType,
|
||||||
(uint)PermissionMask.All, (uint)PermissionMask.All, 0, nextOwnerMask, 0, creationDate);
|
(uint)PermissionMask.All, (uint)PermissionMask.All, 0, nextOwnerMask, 0, creationDate, transationID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void CreateNewInventoryItem(
|
||||||
|
IClientAPI remoteClient, string creatorID, string creatorData, UUID folderID,
|
||||||
|
string name, string description, uint flags, uint callbackID, AssetBase asset, sbyte invType,
|
||||||
|
uint baseMask, uint currentMask, uint everyoneMask, uint nextOwnerMask, uint groupMask, int creationDate)
|
||||||
|
{
|
||||||
|
CreateNewInventoryItem(remoteClient, creatorID, creatorData, folderID,
|
||||||
|
name, description, flags, callbackID, asset, invType,
|
||||||
|
baseMask, currentMask, everyoneMask, nextOwnerMask, groupMask, creationDate, UUID.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -933,7 +944,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private void CreateNewInventoryItem(
|
private void CreateNewInventoryItem(
|
||||||
IClientAPI remoteClient, string creatorID, string creatorData, UUID folderID,
|
IClientAPI remoteClient, string creatorID, string creatorData, UUID folderID,
|
||||||
string name, string description, uint flags, uint callbackID, AssetBase asset, sbyte invType,
|
string name, string description, uint flags, uint callbackID, AssetBase asset, sbyte invType,
|
||||||
uint baseMask, uint currentMask, uint everyoneMask, uint nextOwnerMask, uint groupMask, int creationDate)
|
uint baseMask, uint currentMask, uint everyoneMask, uint nextOwnerMask, uint groupMask, int creationDate,UUID transationID)
|
||||||
{
|
{
|
||||||
InventoryItemBase item = new InventoryItemBase();
|
InventoryItemBase item = new InventoryItemBase();
|
||||||
item.Owner = remoteClient.AgentId;
|
item.Owner = remoteClient.AgentId;
|
||||||
|
@ -956,7 +967,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
if (AddInventoryItem(item))
|
if (AddInventoryItem(item))
|
||||||
{
|
{
|
||||||
remoteClient.SendInventoryItemCreateUpdate(item, callbackID);
|
remoteClient.SendInventoryItemCreateUpdate(item, transationID, callbackID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -2146,10 +2146,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
if (asset != null)
|
if (asset != null)
|
||||||
SculptTextureCallback(asset);
|
SculptTextureCallback(asset);
|
||||||
else
|
// else
|
||||||
m_log.WarnFormat(
|
// m_log.WarnFormat(
|
||||||
"[SCENE OBJECT PART]: Part {0} {1} requested mesh/sculpt data for asset id {2} from asset service but received no data",
|
// "[SCENE OBJECT PART]: Part {0} {1} requested mesh/sculpt data for asset id {2} from asset service but received no data",
|
||||||
Name, UUID, id);
|
// Name, UUID, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1103,6 +1103,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void SendRemoveInventoryItem(UUID itemID)
|
public void SendRemoveInventoryItem(UUID itemID)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -739,6 +739,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void SendRemoveInventoryItem(UUID itemID)
|
public virtual void SendRemoveInventoryItem(UUID itemID)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -716,6 +716,10 @@ namespace OpenSim.Tests.Common.Mock
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void SendRemoveInventoryItem(UUID itemID)
|
public virtual void SendRemoveInventoryItem(UUID itemID)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,6 +162,7 @@
|
||||||
<Reference name="XMLRPC" path="../../../../bin/"/>
|
<Reference name="XMLRPC" path="../../../../bin/"/>
|
||||||
<Reference name="log4net" path="../../../../bin/"/>
|
<Reference name="log4net" path="../../../../bin/"/>
|
||||||
<Reference name="HttpServer_OpenSim" path="../../../../bin/"/>
|
<Reference name="HttpServer_OpenSim" path="../../../../bin/"/>
|
||||||
|
<Reference name="SmartThreadPool"/>
|
||||||
|
|
||||||
<Files>
|
<Files>
|
||||||
<Match pattern="*.cs" recurse="true">
|
<Match pattern="*.cs" recurse="true">
|
||||||
|
|
Loading…
Reference in New Issue