From 87b337ebf9f36ca3b2af94631ec9a235434877ac Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 7 Dec 2007 22:47:11 +0000 Subject: Enabled the TextureDownloadModule, so that hopefully I might get some feedback, as to if it makes the texture problem better or worse. As I plan/hope to work on texture/asset downloading this weekend. --- OpenSim/Region/ClientStack/ClientView.cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Region/ClientStack/ClientView.cs') diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 2ec4fef..dc229f3 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -2728,19 +2728,19 @@ namespace OpenSim.Region.ClientStack for (int i = 0; i < imageRequest.RequestImage.Length; i++) { // still working on the Texture download module so for now using old method - // TextureRequestArgs args = new TextureRequestArgs(); - // args.RequestedAssetID = imageRequest.RequestImage[i].Image; - // args.DiscardLevel = imageRequest.RequestImage[i].DiscardLevel; - // args.PacketNumber = imageRequest.RequestImage[i].Packet; - - // if (OnRequestTexture != null) - // { - // OnRequestTexture(this, args); - // } - - m_assetCache.AddTextureRequest(this, imageRequest.RequestImage[i].Image, - imageRequest.RequestImage[i].Packet, - imageRequest.RequestImage[i].DiscardLevel); + if (OnRequestTexture != null) + { + TextureRequestArgs args = new TextureRequestArgs(); + args.RequestedAssetID = imageRequest.RequestImage[i].Image; + args.DiscardLevel = imageRequest.RequestImage[i].DiscardLevel; + args.PacketNumber = imageRequest.RequestImage[i].Packet; + + OnRequestTexture(this, args); + } + + // m_assetCache.AddTextureRequest(this, imageRequest.RequestImage[i].Image, + // imageRequest.RequestImage[i].Packet, + // imageRequest.RequestImage[i].DiscardLevel); } break; case PacketType.TransferRequest: -- cgit v1.1