From 0abb762ecc3b87e210ffb7009bdddf8a1a159419 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 18 Nov 2008 20:02:25 +0000 Subject: Patch from jhurliman. Fixing the texture decoding issues in progressive texture sending. Grain of salt not included. --- .../Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs | 1 - .../Region/Environment/Modules/Agent/TextureSender/TextureSender.cs | 3 +-- OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 1 - OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs index c064064..044ee76 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs @@ -28,7 +28,6 @@ using System.Reflection; using log4net; using OpenMetaverse; -using OpenMetaverse.Packets; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs index b177103..65ca854 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs @@ -27,7 +27,6 @@ using System; using System.Reflection; -using OpenMetaverse.Packets; using log4net; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; @@ -198,7 +197,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender // See ITextureSender public bool SendTexturePacket() { - if (!m_cancel && (sendFirstPacket || download.CurrentPacket <= download.StopPacket)) + if (download != null && !m_cancel && (sendFirstPacket || download.CurrentPacket <= download.StopPacket)) { SendPacket(); return false; diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index daff760..989f36c 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -29,7 +29,6 @@ using System.Collections; using System.Collections.Generic; using System.Reflection; using OpenMetaverse; -using OpenMetaverse.Packets; using log4net; using Nini.Config; using Nwc.XmlRpc; diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index e46b13c..5bfa1eb 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -31,7 +31,6 @@ using System.Reflection; using System.Text; using System.Timers; using OpenMetaverse; -using OpenMetaverse.Packets; using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -- cgit v1.1