diff options
author | Justin Clarke Casey | 2008-03-12 17:02:08 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-03-12 17:02:08 +0000 |
commit | 42123770de293d17993d85c3f3074f6106d9eaba (patch) | |
tree | 8fafac20193a4219ff9896725d7b2de3486589e9 /OpenSim/Region/ClientStack | |
parent | Applied patch from mantis #749, Grass now stays to set type when moved. thank... (diff) | |
download | opensim-SC_OLD-42123770de293d17993d85c3f3074f6106d9eaba.zip opensim-SC_OLD-42123770de293d17993d85c3f3074f6106d9eaba.tar.gz opensim-SC_OLD-42123770de293d17993d85c3f3074f6106d9eaba.tar.bz2 opensim-SC_OLD-42123770de293d17993d85c3f3074f6106d9eaba.tar.xz |
* Add comments and slight corrections to ClientView.AgentTextureCached
* Reduce 'asset not found' console debug spam
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 58d425d..c5ce43c 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -2329,10 +2329,19 @@ namespace OpenSim.Region.ClientStack | |||
2329 | return true; | 2329 | return true; |
2330 | } | 2330 | } |
2331 | 2331 | ||
2332 | /// <summary> | ||
2333 | /// Send a response back to a client when it asks the asset server (via the region server) if it has | ||
2334 | /// its appearance texture cached. | ||
2335 | /// | ||
2336 | /// At the moment, we always reply that there is no cached texture. | ||
2337 | /// </summary> | ||
2338 | /// <param name="simclient"></param> | ||
2339 | /// <param name="packet"></param> | ||
2340 | /// <returns></returns> | ||
2332 | protected bool AgentTextureCached(IClientAPI simclient, Packet packet) | 2341 | protected bool AgentTextureCached(IClientAPI simclient, Packet packet) |
2333 | { | 2342 | { |
2334 | //System.Console.WriteLine("texture cached: " + packet.ToString()); | 2343 | //System.Console.WriteLine("texture cached: " + packet.ToString()); |
2335 | AgentCachedTexturePacket chechedtex = (AgentCachedTexturePacket)packet; | 2344 | AgentCachedTexturePacket cachedtex = (AgentCachedTexturePacket)packet; |
2336 | AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse); | 2345 | AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse); |
2337 | // TODO: don't create new blocks if recycling an old packet | 2346 | // TODO: don't create new blocks if recycling an old packet |
2338 | cachedresp.AgentData.AgentID = AgentId; | 2347 | cachedresp.AgentData.AgentID = AgentId; |
@@ -2340,12 +2349,12 @@ namespace OpenSim.Region.ClientStack | |||
2340 | cachedresp.AgentData.SerialNum = m_cachedTextureSerial; | 2349 | cachedresp.AgentData.SerialNum = m_cachedTextureSerial; |
2341 | m_cachedTextureSerial++; | 2350 | m_cachedTextureSerial++; |
2342 | cachedresp.WearableData = | 2351 | cachedresp.WearableData = |
2343 | new AgentCachedTextureResponsePacket.WearableDataBlock[chechedtex.WearableData.Length]; | 2352 | new AgentCachedTextureResponsePacket.WearableDataBlock[cachedtex.WearableData.Length]; |
2344 | 2353 | ||
2345 | for (int i = 0; i < chechedtex.WearableData.Length; i++) | 2354 | for (int i = 0; i < cachedtex.WearableData.Length; i++) |
2346 | { | 2355 | { |
2347 | cachedresp.WearableData[i] = new AgentCachedTextureResponsePacket.WearableDataBlock(); | 2356 | cachedresp.WearableData[i] = new AgentCachedTextureResponsePacket.WearableDataBlock(); |
2348 | cachedresp.WearableData[i].TextureIndex = chechedtex.WearableData[i].TextureIndex; | 2357 | cachedresp.WearableData[i].TextureIndex = cachedtex.WearableData[i].TextureIndex; |
2349 | cachedresp.WearableData[i].TextureID = LLUUID.Zero; | 2358 | cachedresp.WearableData[i].TextureID = LLUUID.Zero; |
2350 | cachedresp.WearableData[i].HostName = new byte[0]; | 2359 | cachedresp.WearableData[i].HostName = new byte[0]; |
2351 | } | 2360 | } |