Removed a few comments sent to the console
parent
00579d3581
commit
43da731307
|
@ -329,7 +329,6 @@ namespace OpenSim.Assets
|
||||||
/// <param name="transferRequest"></param>
|
/// <param name="transferRequest"></param>
|
||||||
public void AddAssetRequest(SimClient userInfo, TransferRequestPacket transferRequest)
|
public void AddAssetRequest(SimClient userInfo, TransferRequestPacket transferRequest)
|
||||||
{
|
{
|
||||||
Console.WriteLine("AssetCache- got asset request: " + transferRequest.TransferInfo.TransferID.ToString());
|
|
||||||
LLUUID requestID = new LLUUID(transferRequest.TransferInfo.Params, 0);
|
LLUUID requestID = new LLUUID(transferRequest.TransferInfo.Params, 0);
|
||||||
//check to see if asset is in local cache, if not we need to request it from asset server.
|
//check to see if asset is in local cache, if not we need to request it from asset server.
|
||||||
if (!this.Assets.ContainsKey(requestID))
|
if (!this.Assets.ContainsKey(requestID))
|
||||||
|
@ -338,7 +337,6 @@ namespace OpenSim.Assets
|
||||||
// so request from asset server
|
// so request from asset server
|
||||||
if (!this.RequestedAssets.ContainsKey(requestID))
|
if (!this.RequestedAssets.ContainsKey(requestID))
|
||||||
{
|
{
|
||||||
Console.WriteLine("which isn't in our cache, so requesting from asset server");
|
|
||||||
AssetRequest request = new AssetRequest();
|
AssetRequest request = new AssetRequest();
|
||||||
request.RequestUser = userInfo;
|
request.RequestUser = userInfo;
|
||||||
request.RequestAssetID = requestID;
|
request.RequestAssetID = requestID;
|
||||||
|
@ -349,7 +347,6 @@ namespace OpenSim.Assets
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//it is in our cache
|
//it is in our cache
|
||||||
Console.WriteLine("which is in our cache so will be sending it");
|
|
||||||
AssetInfo asset = this.Assets[requestID];
|
AssetInfo asset = this.Assets[requestID];
|
||||||
|
|
||||||
//work out how many packets it should be sent in
|
//work out how many packets it should be sent in
|
||||||
|
|
|
@ -357,7 +357,7 @@ namespace OpenSim
|
||||||
break;
|
break;
|
||||||
case PacketType.UpdateInventoryItem:
|
case PacketType.UpdateInventoryItem:
|
||||||
UpdateInventoryItemPacket update = (UpdateInventoryItemPacket)Pack;
|
UpdateInventoryItemPacket update = (UpdateInventoryItemPacket)Pack;
|
||||||
Console.WriteLine(Pack.ToString());
|
//Console.WriteLine(Pack.ToString());
|
||||||
for (int i = 0; i < update.InventoryData.Length; i++)
|
for (int i = 0; i < update.InventoryData.Length; i++)
|
||||||
{
|
{
|
||||||
if (update.InventoryData[i].TransactionID != LLUUID.Zero)
|
if (update.InventoryData[i].TransactionID != LLUUID.Zero)
|
||||||
|
@ -744,7 +744,6 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
if (packet.InventoryBlock.Type == 7)
|
if (packet.InventoryBlock.Type == 7)
|
||||||
{
|
{
|
||||||
Console.WriteLine(packet.ToString());
|
|
||||||
this.debug = true;
|
this.debug = true;
|
||||||
//lets try this out with creating a notecard
|
//lets try this out with creating a notecard
|
||||||
AssetBase asset = new AssetBase();
|
AssetBase asset = new AssetBase();
|
||||||
|
@ -754,7 +753,6 @@ namespace OpenSim
|
||||||
asset.Type = packet.InventoryBlock.Type;
|
asset.Type = packet.InventoryBlock.Type;
|
||||||
asset.FullID = LLUUID.Random();
|
asset.FullID = LLUUID.Random();
|
||||||
asset.Data = new byte[0];
|
asset.Data = new byte[0];
|
||||||
Console.WriteLine("created new notecard with asset : " + asset.FullID.ToStringHyphenated());
|
|
||||||
|
|
||||||
m_assetCache.AddAsset(asset);
|
m_assetCache.AddAsset(asset);
|
||||||
m_inventoryCache.AddNewInventoryItem(this, packet.InventoryBlock.FolderID, asset);
|
m_inventoryCache.AddNewInventoryItem(this, packet.InventoryBlock.FolderID, asset);
|
||||||
|
|
Loading…
Reference in New Issue